Re: How to make dotted strokes on a canvas?

2013-03-18 Thread Kody
Hm ok that might be a nice solution for a straight line.
But what about curves? What if I eg create a Rectangle with round corners
(which I want in the long).

I thought there might be something to tell a line it should always be
dashed/spaced.

Cause the link you provided is probably not adaptable to any arc or bezier
methods...


2013/3/18 Samyem Tuladhar 

> http://phrogz.net/tmp/canvas_dashed_line.html
>
>
>
> On Monday, March 18, 2013 12:52:48 PM UTC-4, membersound wrote:
>>
>> Hi,
>>
>> how can I set the stroke style when drawing on a canvas? (trying to make
>> a rectangle with dotted border)
>>
>> Looking for something like: context.setBorder("1px dotted black");
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "Google Web Toolkit" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit/lqM6BW6IGvU/unsubscribe?hl=en
> .
> To unsubscribe from this group and all its topics, send an email to
> google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: How to make dotted strokes on a canvas?

2013-03-18 Thread Samyem Tuladhar
http://phrogz.net/tmp/canvas_dashed_line.html



On Monday, March 18, 2013 12:52:48 PM UTC-4, membersound wrote:
>
> Hi,
>
> how can I set the stroke style when drawing on a canvas? (trying to make 
> a rectangle with dotted border)
>
> Looking for something like: context.setBorder("1px dotted black");
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




How to make dotted strokes on a canvas?

2013-03-18 Thread membersound
Hi,

how can I set the stroke style when drawing on a canvas? (trying to make a 
rectangle with dotted border)

Looking for something like: context.setBorder("1px dotted black");

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.