Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- glass - The variable wrapped to the peripheral
- tinyPrint("text", line, color) - prints up to 5 lines of text on the screen, like in help. Line can be 1-5
- highPrint("text") - Prints texts in red like in the home screen, where it says "Welcome username!"
- midPrint("text") - Prints text in green like in the home screen, where it says "Glass V0.0001"
- lowPrint("text") - Prints text in light blue like in the home screen, where it says "Do $$help for help."
- tinyClear() - Clears Tiny Text
- bigClear() - Clears Big text(highPrint, midPrint and lowPrint text.)
- bigBox - The gray box where text is printed.
- loadPixelAPI - Loads the pixel API. is NOT called by default to free up memory, however, in version 0.3 it is. So beware that next update you will not want to call this before launching your games!
- drawPixel(x,y,color,transparency) - Draws a pixel on the glass screen. Note that the Z index is 4, and text's Z index is 5.
- pixelClear() - Clears all pixels on the screen. In the background this actually makes them completely transparent, but you don't need to worry about that.
- var = rgbColor( r,g,b ) - Converts RGB colors to work with Terminal Glasses, and sets the converted color to var. All credit to TheOriginalBit for making this one!
- ALSO: For Glass to able to launch your application it need to put in in the folder CCGlass/
Advertisement
Add Comment
Please, Sign In to add comment