Hi Pierre Hébert
Hi Pierre Hébert
I have an issue with drawArc
]]>I have an issue with drawArc
]]>
< ![CDATA[
Here is the script
var i = LL.getEvent().getItem();
var image=LL.createImage(100,100);
i.setBoxBackground(image,”n”);
// create a paint object
var p = new Paint();
p.setColor(0xffffffff);
p.setStyle(Paint.Style.STROKE);
// retrieve the canvas
var c = image.draw();
// draw arc
c.drawArc(0,0,100,100,0,180,false,p);
// update so that changes are flipped to the screen
image.update();
]]>
< ![CDATA[
Ligne is now 11
Was 21 with spaces and comments
Working fine on TrianguloY device
I’m using this script on a shortcut inside a folder
]]>
< ![CDATA[
Let’s explain a bit more right?
I helped Bruno trying to draw an arc on a canvas.
I edited a bit your canvas example, that script.
It works for me, but no for him. And I don’t know why.
]]>
< ![CDATA[
Damn u guys are too smart lmao… Don’t u jus love Lord Google’s horrendous blurry ass screen shots lmao
]]>
< ![CDATA[
This method has been added in API 21 (lollipop). Try the alternate version which takes a RectF instead of separate value:
http://developer.android.com/reference/android/graphics/Canvas.html#drawArc(android.graphics.RectF,%20float,%20float,%20boolean,%20android.graphics.Paint)
]]>
< ![CDATA[
Pierre Hébert ah ok
I’m not on lollipop
But soon
So it will work with this instruction ?
drawArc (RectF oval, float startAngle, float sweepAngle, boolean useCenter, Paint paint)
]]>
< ![CDATA[
Yes, you just have to gather left, top, right and bottom in a rectangle. That’s just another way to pass arguments
]]>
< ![CDATA[
Ah! That’s why it worked for me.
It is said…in a little text >_<
Thanks
]]>
< ![CDATA[
TrianguloY yes. Thank you for your help
Pierre Hébert oval = left, top, right, bottom ?
]]>
< ![CDATA[
Bruno-Isa LAMOUR-ARNOULD just a question : what’s your rom?
]]>
< ![CDATA[
Tesla rom 4.4.4
]]>