Page 1 of 3

looking for graphic elements (canvas)

Posted: 07 Oct 2014 15:46
by Phil999
for example, a simple one-color background. What I did is to use the gradient command and two identical colors. There is probably an easier way?

Or lines, vertical, horizontal, with easy editable thickness and color. Circles, squares, triangles, pentagons, hexagons, etc. Again with easy editable sizes, thickness, and color.

Also transparent stuff. A transparent Canvas object that you can put on top of another object, for example one that has no z value, to simulate a touch input or z value.

While the Canvas object has many great possibilities, I'm more interested in simple graphic elements. The complex stuff I will learn later. Needless to say I haven't quite understood how it works. But if I have some simple examples I think I can understand better.

What are your findings so far?

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:01
by Softcore
Yup! I agree that canvas can be first and foremost a "discreet" guy doing hard chores in the background and not be something flashy.

Dont get why you used such a cumbersome way for a simple color fill
Canvas-ColouredFill.jzml
(1.16 KiB) Downloaded 198 times
;)

By the way, unfortunately the z emulation is not possible. TOUCH transparency of Canvas (not visual) is only possible when the Canvas object is set to "no touch". As soon as you set it to "mono touch" or "multi touch" objects behind the canvas are not "touched".

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:04
by Softcore
Here...see what I mean!

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:04
by Joe Soap
Yo.

I think Phil intends the canvas touch to be used as a proxy z for objects that lack their own z attribute - except of course, as you mention - when touch is enabled on the canvas, it blocks input to anythingunderneath.

Which . . . is basically what you already said, except more longwinded! :D

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:06
by Softcore
yes thats what I said too....you CANT track BOTH the canvas overlay (for the z) AND the underlying object.

You 'll have EITHER the "pseydo z" of canvas but you will NOT be able to touch the overlayed object.....OR you will be able to "touch" the overlayed object BUT when canvas does NOT track touches.

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:08
by Joe Soap
Yup - halfway through submitting my post I realised what you were implying ;)

They should just implement the fucking z on all objects already . . . it's not like people haven't been requesting it for years now or anything.

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:09
by Softcore
Download my example and you will see what I mean.........its NOT possible with the current state of Canvas....
Because when you set it to track touches, it looses its "touch" transparency (NOT THE VISUAL ONE)....so you cant use it ON TOP of another object that doesnt have a z attribute.
;)

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:10
by Joe Soap
It's okay - I get it! :D

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:11
by Softcore
lol no damn it - you dont!

Just kidding lol!

Re: looking for graphic elements (canvas)

Posted: 07 Oct 2014 18:12
by Softcore
Well honestly, which objects do not currently have a z attribute? I think they could be easily recreated in their whole, using canvas....So I honestly think its a moot point to ask for z anymore.