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
  • Root
  • Category
  • Color item
  • Full example
  1. Visual Basic .NET tools
  2. Color library and converter

Color library XML

Last updated 1 year ago

This file format is used by the first iteration of the .

The format is a simple .xml file, containing a strict data structure.

Root

The root node of the xml structure is a single node with no attributes, called color. This node contains the categories as a list of child nodes.

Required children:

  • None

Optional children:

  • categories: category nodes

<?xml ... xml header ... ?>
<color>
	...
</color>

Category

A category is defined by a node called category. It has a required child node called name which holds the name of the category. The colors in the category are held in a list of children nodes.

Required children:

  • name: name of the category

Optional children:

  • colors: color nodes

<category>
	<name>Category 1</name>
	...
</category>

Color item

A color is defined by a node called color.

Required children:

  • name: name of the color item

  • format: color format

    • 1: sRGB 8-bit

    • 2: sRGB

    • 3: linear RGB

  • R: red value

  • G: green value

  • B: blue value

Optional children:

  • None

<color>
	<name>Color 1</name>
	<format>1</format>
	<R>255</R>
	<G>255</G>
	<B>255</B>
</color>

Full example

<?xml version="1.0" encoding="utf-8"?>
<color>
  <category>
	<name>Category 1</name>
	<color>
	  <name>Color 1</name>
	  <format>3</format>
	  <R>0.353</R>
	  <G>0.101</G>
	  <B>0</B>
	</color>
	<color>
	  <name>Color 2</name>
	  <format>3</format>
	  <R>0.353</R>
	  <G>0.216</G>
	  <B>0.002</B>
	</color>
  </category>
  <category>
	<name>Category 2</name>
	<color>
	  <name>Color1</name>
	  <format>3</format>
	  <R>0.049</R>
	  <G>0.03</G>
	  <B>0</B>
	</color>
  </category>
</color>
🔧
Color converter and library