Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #38623
| Newsgroups | comp.lang.javascript |
|---|---|
| Date | 2020-07-31 03:13 -0700 |
| References | <2d67a118-b5a6-4e51-a40d-98926523bcb6o@googlegroups.com> <05c7781a-872f-4257-af74-5df9b0353445o@googlegroups.com> |
| Message-ID | <e93aaa27-353f-43a8-a233-82f623f5ef4fo@googlegroups.com> (permalink) |
| Subject | Re: Canvas filled circles |
| From | Jonas Thörnvall <jonas.thornvall@gmail.com> |
Den fredag 31 juli 2020 kl. 10:19:30 UTC+2 skrev luserdroog: > On Thursday, July 30, 2020 at 5:41:58 PM UTC-5, Jonas Thörnvall wrote: > > When i draw 2 filled circles. > > ctm.arc(tileElement[u].X+50, tileElement[u].Y+50, 15, 0, 2 * Math.PI); > > ctm.arc(tileElement[v].X+50, tileElement[v].Y+50, 15, 0, 2 * Math.PI); > > ctm.fill(); > > > > And then draw two more to the right there is two triangles between them formed xshaped/butterfly? > > > > Why? > > I've seen this in PostScript drawing. It can happen when arc has a subtly > different behavior depending upon whether there's a current point in the > path. If there's no current point, arc will start with a MoveTo element. > But if there is a current point, arc will start with a LineTo element. > > The workaround is to call fill() or whatever your drawing operation is > after each shape. Filling will implicitly clear the path. Well i added fill after every ARC, and there is just two so that is not it? I basicly have just three drawn elements rectangles, arcs and from Unicode charset. And 2*Math.PI is the correct full circle, it is not somehow open at end?
Back to comp.lang.javascript | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Canvas filled circles Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-07-30 15:41 -0700
Re: Canvas filled circles luserdroog <luser.droog@gmail.com> - 2020-07-31 01:19 -0700
Re: Canvas filled circles Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-07-31 03:13 -0700
Re: Canvas filled circles Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-07-31 03:38 -0700
Re: Canvas filled circles luserdroog <luser.droog@gmail.com> - 2020-07-31 10:44 -0700
Re: Canvas filled circles Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-07-31 11:06 -0700
Re: Canvas filled circles luserdroog <luser.droog@gmail.com> - 2020-07-31 11:56 -0700
Re: Canvas filled circles "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2020-07-31 11:49 -0700
Re: Canvas filled circles Jonas Thörnvall <jonas.thornvall@gmail.com> - 2020-07-31 12:30 -0700
csiph-web