CCGlass v0.0001 alpha
#1
Posted 17 June 2013 - 07:00 PM
http://www.computerc...0002-pixel-api/
#2
Posted 17 June 2013 - 08:04 PM
#3
Posted 17 June 2013 - 08:08 PM
Also, added stuff to the post.
#4
Posted 17 June 2013 - 10:09 PM
/ontopic
That GUI looks like the Plastic GUI.
#5
Posted 17 June 2013 - 10:21 PM
For most practical applications(also the help screen) there is a function called tinyPrint that is all size 1 and allows for 5 lines on the screen. It also allows for customized colors. It's current use is Help, but it'll be super useful when I add a Books app.
#6
Posted 17 June 2013 - 10:33 PM
Icanbreathecode, on 17 June 2013 - 10:21 PM, said:
0xRRGGBB
where each set of two is 0-255 or 00-FF in HEX and represents either Red ( R ), Green ( G ), or Blue ( B ).
Use the hex values with a 0x in the font.
#7
Posted 18 June 2013 - 09:25 AM
#8
Posted 18 June 2013 - 01:05 PM
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.
ALSO: For Glass to able to launch your application it need to put in in the folder CCGlass/
C&Ping this into the OP.
tiin57, on 18 June 2013 - 09:25 AM, said:
#9
Posted 19 June 2013 - 05:53 AM
Icanbreathecode, on 17 June 2013 - 10:21 PM, said:
function rgb( _r, _g, _b ) return bit.bor( bit.blshift( bit.bor( bit.blshift( _r, 8 ), _g ), 8 ), _b ) end
Example usage:
--# previously you did this glcolors.blue = 0x7dd2e4 glass.addBox(160, 0, 5, 60, glcolors.blue, 0.75) --# now you could do this glcolors.blue = rgb(125, 210, 228) glass.addBox(160, 0, 5, 60, glcolors.blue, 0.75)
If you're curious
#10
Posted 19 June 2013 - 07:53 AM
theoriginalbit, on 19 June 2013 - 05:53 AM, said:
Icanbreathecode, on 17 June 2013 - 10:21 PM, said:
function rgb( _r, _g, _b ) return bit.bor( bit.blshift( bit.bor( bit.blshift( _r, 8 ), _g ), 8 ), _b ) end
Example usage:
--# previously you did this glcolors.blue = 0x7dd2e4 glass.addBox(160, 0, 5, 60, glcolors.blue, 0.75) --# now you could do this glcolors.blue = rgb(125, 210, 228) glass.addBox(160, 0, 5, 60, glcolors.blue, 0.75)
If you're curious
Ha, I like that!
#12
Posted 19 June 2013 - 05:35 PM
(in RGB)
#13
Posted 19 June 2013 - 09:42 PM
Also: theoriginalbit, do you mind if I add that function to the GlassAPI?
#15
Posted 19 June 2013 - 11:12 PM
Icanbreathecode, on 19 June 2013 - 05:35 PM, said:
Icanbreathecode, on 19 June 2013 - 09:42 PM, said:
-- kindly created by TheOriginalBIT
#16
Posted 20 June 2013 - 04:35 PM
theoriginalbit, on 19 June 2013 - 11:12 PM, said:
Icanbreathecode, on 19 June 2013 - 05:35 PM, said:
Icanbreathecode, on 19 June 2013 - 09:42 PM, said:
-- kindly created by TheOriginalBIT
I put credits to you at the top credit thing, and right before the function.
#17
Posted 21 June 2013 - 03:30 AM
#18
Posted 21 June 2013 - 08:10 PM
1lann, on 21 June 2013 - 03:30 AM, said:
And also words Like "sky blue", "crimson", "deep purple", etc...
2 user(s) are reading this topic
0 members, 2 guests, 0 anonymous users