This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
pbcub1's profile picture

[Error]Can't find the right color number for black

Started by pbcub1, 24 November 2012 - 12:19 AM
pbcub1 #1
Posted 24 November 2012 - 01:19 AM
I have tried many different numbers in

paintutils.drawPixel( x , y , --[[This is the number i need]] )
However I can not find black, so this dude that commented after original post said to do something with

colors.black()
and i tried

local id, black = colors.black()
paintutils.drawPixel( x , y, black )
And i get an error saying "Attempt to call number"
I would like help in this.
Sammich Lord #2
Posted 24 November 2012 - 01:35 AM
Just use the "color" API. In a computer type "help color".
pbcub1 #3
Posted 24 November 2012 - 02:11 AM
I get something that says attempt to call number, i forgot to mintion its a paintutils.drawPixel( 25,12,–[needs to be black-])
pbcub1 #4
Posted 24 November 2012 - 03:47 AM
i found out what i did, if a mod could please close this, that would be awesome