MrClock's Documentations
  • 🏠Welcome
  • 📄Documents
    • Arma 3 models
      • Proxy coordinates
      • Vertex normals
      • Sections
    • Arma 3 animations
      • Armature reconstruction
      • Frame properties
      • Import into Blender
      • BMTR to plain RTM
  • 📦Blender add-ons
    • Arma 3 Object Builder
  • 🐍Python tools
    • Color converter
  • 🔧Visual Basic .NET tools
    • Color converter
      • Color library TXT
    • Color library and converter
      • Color library XML
    • Class list extractor
    • Editor preview processor
    • Texture converter
  • 🛠️Visual Basic .NET Framework tools
    • Color library and converter
      • COLORLIB file
    • Class list extractor
    • Editor preview processor
    • Generic name ID generator
    • Texture converter
Powered by GitBook
On this page
  • Features
  • Conversion
  • Pick a color
  • Color library
  • Import XML libraries
  • Color cards
  • Preferences
  • Save after every change
  • Color card annotation
  • Environment
  • Requirements
  • Changelogs
  1. Visual Basic .NET Framework tools

Color library and converter

Last updated 1 year ago

This page is about the latest Visual Basic .Net Framework version of the tool. If you want to read about thee Visual Basic .Net based iteration, head over to the page.

Features

  • Convert between color formats

    • sRGB 8-bit

    • sRGB

    • linear RGB

  • Save and load colors from color library file

  • Generate color sample cards

  • Pick color from loaded or copy-pasted images

  • Light and dark color theme

The Color library and converter is the fourth iteration of the color converter tool, and the second iteration of the integrated color library. It is written in Visual Basic .Net Framework. It integrates the converter part of the original iteration with a structured color library which allows for categories as well, and a color picker window.

Conversion

Before conversion, the value to be converted, and the format of the input value has to be set. If the input value in one of the RGB fields is invalid for the selected input format, the result fields are displayed empty after conversion (visual feedback is also given while the input is typed into the fields). If all 3 RGB values could be successfully converted, a color sample is displayed at the bottom of the window, and the sRGB hexadecimal code is also shown (the feature was brought back from the second color converter iteration).

Pick a color

The color picker area accepts existing images by drag-and-drop and opening through file explorer, as well as images pasted from the clipboard.

Color library

Colors are stored in categories. All items in the hierarchy are displayed in alphabetical order (even if they are not like so in the actual library file).

Next to every category, the number of contained colors is displayed, while next to every color, the saved format is indicated (S8: sRGB 8-bit, S: sRGB, L: linear RGB).

Import XML libraries

Imported XML libraries are temporary libraries in memory. They cannot be saved back to the source file, or be reloaded. It is advised that XML libraries are Saved As the new file format after import. Color cards

Color cards

Color cards can be generated from colors saved in the current library. The main body of the card is of the selected color, and the annotation block contains the name and color codes.

The name of the color format in which the color is saved in the library is always underlined. This is to indicate which format is the most precise (while conversion is precise, ±0.001 deviation can sometimes be observed in the converted values due to rounding).

The card can be either saved to a file (300 x 300 pixels, rounded corners), or copied to the system clipboard (300 x 300 pixels, straight corners).

Preferences

Save after every change

If this setting is enabled, the library is saved (if possible) after every change made to it (eg: renaming the library, adding or removing items etc.).

Use with caution! With this setting, if something is changed, it is changed permanently, and there is no undo.

Color card annotation

  • Color name:

    • Library name: include the library name of the color

    • Custom name: prompt for a custom name

  • Formats:

    • Only source format: include only the source format values

    • All formats: include all converted values

Environment

  • Logic: Visual Basic .Net Framework 4.8

  • GUI: Windows Presentation Foundation

Requirements

  • .NET Framework 4.8

Changelogs

v2.0.3

Fixed:

  • Text input dialogs were resizing to unrealistic widths with long inputs

  • Save color dialogs were resizing to unrealistic widths with long inputs

Changed:

  • Simplified internal handling of .colorlib files

  • Color cards now adjust the title field height to allow longer color names to wrap

v2.0.2

Fixed:

  • Color code annotation on color cards was not culture invariant

  • Color card to clipboard would fail and crash the application if the clipboard was locked by another process

v2.0.1

Fixed:

  • Loading colors from the library was not culture invariant

v2.0.0

Initial public version

The color library is stored in a special which is easier to manage programatically and validate for integrity.

This feature serves backwards compatibility with the of the previous version of the application.

🛠️
COLORLIB file
XML based library file
Color converter (VB.Net)