Skip to content

Nexusnui/LDrawColoursForOpenScad

Repository files navigation

This is a library for OpenScad that lets you use the LDraw colour codes and names. Image of Color Preview Model

Usage:
Download ldraw-colour.scad and place it into the OpenScad libraries folder or your project folder.
(This library might be also be installable through the OpenScad library manager, when available)
Then include it with:
include<ldraw-colours.scad>;
Then you can use ldraw colours like this:
color(LD_red)sphere(10);
There are two prefixes "LD_" and "LDe_". They followed by either a colour code or name. For example "LD_4" and "LD_red" are the same colour. Colour names must be lower case. The prefix "LDe" returns the edge colour of the LDraw colour.
More about LDraw colours can be found in the LDraw Colour Definition Reference.

The colour values are from the LDConfig.ldr file included with the LDraw library available on LDraw.org
The colours are the ones present in the parts update 2025-01.
LDraw™ is a trademark owned and licensed by the Estate of James Jessiman, which does not sponsor, endorse, or authorize this library.

About

A library for LDraw colour codes and names for OpenScad

Topics

Resources

License

Stars

Watchers

Forks