Get pen color
pencolor
pc
Returns an array of the current pen color components.
Example:
wrap rt 90
setps 30
repeat 10 [
setpc random 1000
print pc
fd 10
]
Output:
{94.5098039215686 80.7843137254902 3.52941176470588 100}
{100 41.5686274509804 0.392156862745098 100}
{16.4705882352941 100 60.3921568627451 100}
{0.392156862745098 37.6470588235294 100 100}
{4.31372549019608 81.5686274509804 92.5490196078431 100}
{0.392156862745098 34.9019607843137 100 100}
{99.2156862745098 66.6666666666667 1.96078431372549 100}
{1.17647058823529 48.6274509803922 100 100}
{1.56862745098039 56.4705882352941 99.6078431372549 100}
{100 53.7254901960784 1.17647058823529 100}
See also:
Table of Content