of     2   
chevron_rightchevron_rightchevron_right

Notunknown99
#122083262Friday, January 03, 2014 3:36 AM GMT

These two new GUI Objects are a bit like ImageLabels in that they store an image, however they store an image that is drawn onto them by scripts. The canvas starts out blank (all pixels transparent) and the player can use the following methods to draw onto it (pixelData is a hex in the form RGBA IE: "FF00FF00" is purple with 0 transparency. If blending is false then the pixel is overridden, regardless of the alpha.): DrawPixel(Vector2 point, String pixelData, bool blending = true) DrawLine(Vector2 point1, Vector2 point2, String pixelData, bool blending = true) DrawRectangle(Vector2 point1, Vector2 point2, String pixelData, bool blending = true) DrawRectangle(table points, String pixelData, bool blending = true) --points is a table of Vector2s. DrawCircle(Vector2 center, int radius, String pixelData, bool blending = true) DrawDecal(Vector2 topLeft, int assetId, bool blending = true) DrawImage(Vector2 topLeft, table pixelData, bool blending = true) --IE: {{"FFFFFF00", "FFFFFF00"}, {"FF00FF00", "00000000"}}. If all rows are not of equal length, it will error. ClearCanvas() There will be a Vector2 property saying how many pixels wide and tall the canvas is, the same as SurfaceGuis. "But this is abusable!" - So are frames. "Why have DrawImage if we have DrawDecal?" - So that we can draw recolored versions of images on the screen or get images using HttpService.
Notunknown99
#122083505Friday, January 03, 2014 3:39 AM GMT

Oops, that second DrawRectangle should be DrawPolygon. And maybe DrawRectangle, DrawDecal and DrawImage could have a rotation property.
Notunknown99
#122099528Friday, January 03, 2014 6:46 AM GMT

Nobody?
Notunknown99
#122142717Friday, January 03, 2014 7:23 PM GMT

:(
spacegang
#122142857Friday, January 03, 2014 7:24 PM GMT

so it is like putting an image inside of an image so instead of instance'd a new image, you can just change the values? surport 100%
Notunknown99
#122142973Friday, January 03, 2014 7:25 PM GMT

Yay! :D
Notunknown99
#122168870Friday, January 03, 2014 11:19 PM GMT

Stupid Report Abuse button right next to the Reply button... Why can I even report myself, anyway?
MunimR
#122169825Friday, January 03, 2014 11:28 PM GMT

Oh my god a decent idea on S&I THE WORLD IS COMING TO AN END Anyways, yea I like the idea. Support [WORK WITH ME PEOPLE]
jjkl44
#122170887Friday, January 03, 2014 11:38 PM GMT

I support. ~~Necromancer! --Eucliwood Hellscythe~~
Notunknown99
#122180048Saturday, January 04, 2014 1:08 AM GMT

Alternative idea, what if we could use OpenGL on it? IE: CanvasLabel/CanvasButton:glClear("GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT") CanvasLabel/CanvasButton:glBindTexture("GL_QUADS") CanvasLabel/CanvasButton:glBegin("GL_QUADS") CanvasLabel/CanvasButton:glVertex2f(0.2, 0.2) CanvasLabel/CanvasButton:glVertex2f(0.3, 0.2) CanvasLabel/CanvasButton:glVertex2f(0.3, 0.3) CanvasLabel/CanvasButton:glVertex2f(0.2, 0.3) CanvasLabel/CanvasButton:glEnd(0.2, 0.2)
AX94
#122180281Saturday, January 04, 2014 1:11 AM GMT

OpenGL looks a bit complicated. The first idea seems easier to read for me. I support this though.
Notunknown99
#122180658Saturday, January 04, 2014 1:14 AM GMT

It might be a bit more complicated, but it is essentially the same. AND you can bind a texture then draw complex shapes with it (Allowing for you to render meshes with textures on a GUI)
AX94
#122183100Saturday, January 04, 2014 1:38 AM GMT

This is literally the best idea I've seen on here in weeks.
Notunknown99
#122183244Saturday, January 04, 2014 1:39 AM GMT

I try my best.
Notunknown99
#122283658Sunday, January 05, 2014 12:02 AM GMT

:P
Notunknown99
#122283669Sunday, January 05, 2014 12:02 AM GMT

:|
TutorialBlox
#122284857Sunday, January 05, 2014 12:13 AM GMT

Easily scriptable.
marcopolo444
#122285622Sunday, January 05, 2014 12:20 AM GMT

support. not easily scriptable, also.
Notunknown99
#122299333Sunday, January 05, 2014 2:26 AM GMT

@TutorialBlox: Using thousands of frames does not count. The lag would be so extreme that it is totally impractical.
Notunknown99
#122302160Sunday, January 05, 2014 2:53 AM GMT

:P
Notunknown99
#122368934Sunday, January 05, 2014 7:48 PM GMT

::P
Notunknown99
#122383188Sunday, January 05, 2014 9:59 PM GMT

:::P
cybersamurai
#122385159Sunday, January 05, 2014 10:18 PM GMT

Sounds great! I don't know if ROBLOX has OpenGL support, though...
dribson
#122385382Sunday, January 05, 2014 10:20 PM GMT

Support. We need more intuitive additions and less hat
Notunknown99
#122391465Sunday, January 05, 2014 11:15 PM GMT

@cyber: it uses DirectX and OpenGL, and I am quite sure DirectX contains support for OpenGL.

    of     2   
chevron_rightchevron_rightchevron_right