B4J Code Snippet predefined gimp colors

In B4J unfortunately only a few colors are predefined,
for all the people who often work with colors,
I have the work done to define the gimp colors for different purposes.
(translate with google)

  • Text file with TAB seperate values, RGB ("gimp_colors_tab.txt")
255 250 250 snow
248 248 255 ghost white
  • Text file with comma seperate values, RGB ("gimp_colors_comma.txt")
255,250,250,snow
248,248,255,ghost white
  • Text file with b4j Dim declares, only names without space ("gimp_colors_dim.txt")
Dim Snow As Long = 0xfffafaff
Dim GhostWhite As Long = 0xf8f8ffff
  • as a Map file ("gimp_colors_map.txt")
snow4=0x8b8989ff
ghost\ white=0xf8f8ffff

  • as a Map declares file, only names without space ("gimp_colors_mapdef.txt")
GimpColors.Initialize
GimpColors.Put("snow", 0xfffafaff)
GimpColors.Put("GhostWhite", 0xf8f8ffff)

I renamed "tan" to "tawny" in order to have no conflicts with the function of "tan".
 

Attachments

  • gimp_colors_map.txt
    16.2 KB · Views: 301
  • gimp_colors_comma.txt
    15.2 KB · Views: 245
  • gimp_colors_tab.txt
    15.2 KB · Views: 231
  • gimp_colors_dim.txt
    22 KB · Views: 343
  • gimp_colors_mapdef.txt
    27.9 KB · Views: 338
Last edited:

Similar Threads

Top