Skip to content

armandoalonso/color-store

Repository files navigation


Color Store

A database for storing and retrieving colors

Author: piranha305
Made using c3ide2-framework

Table of Contents


Usage

To build the addon, run the following commands:

npm i
node ./build.js

To run the dev server, run

npm i
node ./dev.js

The build uses the pluginConfig file to generate everything else. The main files you may want to look at would be instance.js and scriptInterface.js

Examples Files




Properties

Property Name Description Type

Actions

Action Description Params
Set color (packed) Sets the color Tag (string)
Color (number)
Set color (hex) Sets the color Tag (string)
Color (string)
Set color (rgb) Sets the color Tag (string)
Red (number)
Green (number)
Blue (number)
Alpha (number)
Set color (rgb normalized) Sets the color Tag (string)
Red (number)
Green (number)
Blue (number)
Alpha (number)
Set color (hsl) Sets the color Tag (string)
Hue (number)
Saturation (number)
Lightness (number)
Alpha (number)
Load JSON Loads the JSON string JSON (string)

Conditions

Condition Description Params

Expressions

Expression Description Return Type Params
Hex Returns the color as a hex string string Tag (string)
Packed Returns the color as a packed number number Tag (string)
R Returns the color's red value number Tag (string)
G Returns the color's green value number Tag (string)
B Returns the color's blue value number Tag (string)
A Returns the color's alpha value number Tag (string)
NormalR Returns the normal's red value number Tag (string)
NormalG Returns the normal's green value number Tag (string)
NormalB Returns the normal's blue value number Tag (string)
NormalA Returns the normal's alpha value number Tag (string)
Hue Returns the color's hue value number Tag (string)
Saturation Returns the color's saturation value number Tag (string)
Lightness Returns the color's lightness value number Tag (string)
AsJSON Returns the color as a JSON string string

About

A construct 3 plugin that stores and manages color data, in a variety of formats

Resources

Stars

Watchers

Forks

Packages

No packages published