NodeBox

Create visual output with Python programming code
Home Download Reference Tutorial Library Gallery About

pixie.color()

Syntax

color(c=0.8, m=0.4, y=0.0, k=0.4)

Description

Sets the text color for a Pixie text paragraph() in CMYK.

Example

pixie = ximport("pixie")
txt  = "Pixie was originally a part of the Aunt Hillary code package,"
txt += "a handwriting that looks different each time, contains mistakes,"
txt += "has wobbly baselines and variable color pressure."
pixie.color(0, 0, 0, 1)
pixie.paragraph(txt, 100, 100, 200, pt=15)