Welcome Guest (Log in)

SkColorNames

General
Expander triangle
  • Author
  • Rating
  • Type
  • Revision
  • Downloaded
  • Updated
  • Stam Kapetanakis
  • StarStarStarStarStar
  • Stack
  • 6
  • 361 Times
  • 27 October 2022
Visual picker for built-in color names constants in LiveCode
LiveCode has > 500 color constants which aren't easily accessible.

This stack will read in all the avaialble color names
Filter function to search for colors
Double-click on the desired row to copy the color name
Right-click on the desired row to copy the RGB values

=================================================
Changes in 1.2.1
- Fixed issue with RGB data - courtesy of Bernd
=================================================
Changes in version 1.2:
- Right-click to copy RGB values
- Fixed sorting for proper text rather than numeric sorting
- Fixed row count when clearing text field
- Dynamic layout so the palette can now be resized if desired
- More detailed attribution for TinyColor library in it's framework substack

A huge thankyou to Bernd for his recommendations for all of the above and in particular for the sort algorithm.
=================================================
Changes in version 1.1:
- slight speed optimisation, UI
- added filter function to search for colour names
- incorporated the tinyColor library

TinyColor is an excellent library for colour-related functions and was ported from javascript to LiveCode by FerrusLogic.
It is avaialble at https://github.com/Ferruslogic/TinyColor
This attribution is also available in the framework substack.
=================================================
Ajax Loader
Tags
Expander triangle
User Comments
Expander triangle