Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #6010
| Newsgroups | comp.programming |
|---|---|
| Date | 2015-12-03 07:20 -0800 |
| References | <838b34ba-88fb-48a1-964e-67d0954c7ed3@googlegroups.com> <f7d924c1-5c4d-4665-8233-2ef700e6848a@googlegroups.com> |
| Message-ID | <efbeb7e3-40aa-442b-acc3-e7d7fa6ba05b@googlegroups.com> (permalink) |
| Subject | Re: javascript fillrect vs beginpath - why is that so? |
| From | fir <profesor.fir@gmail.com> |
W dniu niedziela, 29 listopada 2015 21:34:11 UTC+1 użytkownik Julio Di Egidio napisał: > On Sunday, November 29, 2015 at 1:28:02 PM UTC, fir wrote: > > afail in js/canvas there is no call to fillrect, fillcircle etc method but instead something like > > > > ctx.beginPath(); > > ctx.rect(brickX, brickY, brickWidth, brickHeight); > > ctx.fillStyle = "#0095DD"; > > ctx.fill(); > > ctx.closePath(); > > > > is used... it seems overal a bit weird decision.. dont you think so? (or maybe not?) at least it wonders me a bit, Why is that so - is there some rationale under it? > > Generally, under HTML5 styles follow the CSS model. > > Julio I see i was wrong there is simple firlect in canvas too (i thought its absent and that seemd strange/interesting to me)
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
javascript fillrect vs beginpath - why is that so? fir <profesor.fir@gmail.com> - 2015-11-29 05:27 -0800
Re: javascript fillrect vs beginpath - why is that so? Julio Di Egidio <julio@diegidio.name> - 2015-11-29 12:34 -0800
Re: javascript fillrect vs beginpath - why is that so? fir <profesor.fir@gmail.com> - 2015-12-03 07:20 -0800
Re: javascript fillrect vs beginpath - why is that so? Öö Tiib <ootiib@hot.ee> - 2015-12-06 08:08 -0800
Re: javascript fillrect vs beginpath - why is that so? BartC <bc@freeuk.com> - 2015-12-07 14:20 +0000
csiph-web