Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #20704 > unrolled thread
| Started by | jonas.thornvall@gmail.com |
|---|---|
| First post | 2013-07-19 01:50 -0700 |
| Last post | 2013-09-01 16:18 +0200 |
| Articles | 20 on this page of 40 — 12 participants |
Back to article view | Back to comp.lang.javascript
Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 01:50 -0700
Re: Drawline in javascript? Martin Honnen <mahotrash@yahoo.de> - 2013-07-19 11:12 +0200
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 02:30 -0700
Re: Drawline in javascript? "Evertjan." <exxjxw.hannivoort@inter.nl.net> - 2013-07-19 11:15 +0200
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 02:23 -0700
Re: Drawline in javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-19 13:09 +0200
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 09:15 -0700
Re: Drawline in javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-19 20:08 +0200
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 12:15 -0700
Re: Drawline in javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-19 21:42 +0200
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 12:44 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 12:47 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 12:50 -0700
Re: Drawline in javascript? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-07-19 13:00 -0600
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 12:06 -0700
Re: Drawline in javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-19 21:34 +0200
Re: Drawline in javascript? Tim Streater <timstreater@greenbee.net> - 2013-07-19 21:17 +0100
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 13:20 -0700
Re: Drawline in javascript? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-07-19 13:32 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 13:39 -0700
Re: Drawline in javascript? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-07-19 13:53 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 14:04 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 14:17 -0700
Re: Drawline in javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-19 23:27 +0200
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 15:10 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 15:21 -0700
Re: Drawline in javascript? Scott Sauyet <scott@sauyet.com> - 2013-07-20 17:54 +0000
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-20 13:49 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 13:23 -0700
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 13:30 -0700
Re: Drawline in javascript? "ViLco" <villiber@tin.it> - 2013-07-23 14:59 +0200
Re: Drawline in javascript? Martin Leese <please@see.Web.for.e-mail.INVALID> - 2013-07-19 14:30 -0600
Re: Drawline in javascript? jonas.thornvall@gmail.com - 2013-07-19 13:40 -0700
Re: Drawline in javascript? "Michael Haufe (TNO)" <tno@thenewobjective.com> - 2013-07-19 13:25 -0700
Re: Drawline in javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-19 22:56 +0200
Re: Drawline in javascript? Ken <so@abdiassoftware.com> - 2013-08-26 22:08 -0500
Re: Drawline in javascript? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-08-28 19:54 +0100
Re: Drawline in javascript? Ken <usenet-so@abdiassoftware.com> - 2013-08-28 18:56 -0500
Re: Drawline in javascript? Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> - 2013-08-30 20:17 +0100
Re: Drawline in javascript? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-09-01 16:18 +0200
Page 2 of 2 — ← Prev page 1 [2]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2013-07-19 13:53 -0700 |
| Message-ID | <bcc5ec61-5972-45a1-b687-42bb832ca476@googlegroups.com> |
| In reply to | #20732 |
On Friday, July 19, 2013 3:39:27 PM UTC-5, jonas.t...@gmail.com wrote: > > Honestly i do not think you are the right man to quote Confucius, maybe you should label it confusius instead. 1. Your honesty and thoughts are irrelevant to the topic 2. Even less relevant to my relationship with him 3. Misattribution would be of course be pointless > You still do realise that you can fit the HTML tags on a line and end up with 9 line of codes, if you just could get it working? I realize quite a bit more than you care to admit. An attempt at reverse psychology will fail with me. If you had spent any of the last few minutes working on your problem and/or thinking instead of playing with your e-penor, you'd be done by now and happy.
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-19 14:04 -0700 |
| Message-ID | <aa88918b-0eaa-46b2-b043-6e6f0423d605@googlegroups.com> |
| In reply to | #20734 |
Den fredagen den 19:e juli 2013 kl. 22:53:27 UTC+2 skrev Michael Haufe (TNO): > On Friday, July 19, 2013 3:39:27 PM UTC-5, jonas.t...@gmail.com wrote: > > > > > > Honestly i do not think you are the right man to quote Confucius, maybe you should label it confusius instead. > > > > 1. Your honesty and thoughts are irrelevant to the topic > > 2. Even less relevant to my relationship with him > > 3. Misattribution would be of course be pointless > > > > > You still do realise that you can fit the HTML tags on a line and end up with 9 line of codes, if you just could get it working? > > > > I realize quite a bit more than you care to admit. An attempt at reverse psychology will fail with me. If you had spent any of the last few minutes working on your problem and/or thinking instead of playing with your e-penor, you'd be done by now and happy. Well this is the case, i found code that works. Code monkey showed up critsizing the code i found, and ***offered a better way***... I apparently applied the code monkeys astonishing 7 line of perfection the wrong way, or code monkey chewed his own ass. But i assumed it was my appliance of his code that was wrong so i asked him to put some HTML code around for a copy paste example. Code monkey start to get anal, and i smacked the bitch up. End of story.
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-19 14:17 -0700 |
| Message-ID | <11c28101-1a26-4463-ab94-fe52d8d3fb99@googlegroups.com> |
| In reply to | #20736 |
Den fredagen den 19:e juli 2013 kl. 23:04:42 UTC+2 skrev jonas.t...@gmail.com: > Den fredagen den 19:e juli 2013 kl. 22:53:27 UTC+2 skrev Michael Haufe (TNO): > > > On Friday, July 19, 2013 3:39:27 PM UTC-5, jonas.t...@gmail.com wrote: > > > > > > > > > > > > > > Honestly i do not think you are the right man to quote Confucius, maybe you should label it confusius instead. > > > > > > > > > > > > 1. Your honesty and thoughts are irrelevant to the topic > > > > > > 2. Even less relevant to my relationship with him > > > > > > 3. Misattribution would be of course be pointless > > > > > > > > > > > > > You still do realise that you can fit the HTML tags on a line and end up with 9 line of codes, if you just could get it working? > > > > > > > > > > > > I realize quite a bit more than you care to admit. An attempt at reverse psychology will fail with me. If you had spent any of the last few minutes working on your problem and/or thinking instead of playing with your e-penor, you'd be done by now and happy. > > > > Well this is the case, i found code that works. Code monkey showed up critsizing the code i found, and ***offered a better way***... I apparently applied the code monkeys astonishing 7 line of perfection the wrong way, or code monkey chewed his own ass. But i assumed it was my appliance of his code that was wrong so i asked him to put some HTML code around for a copy paste example. Code monkey start to get anal, and i smacked the bitch up. > > > > End of story. I take the little code monkey for an IQ test any day, and then we all have a laugh.
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-07-19 23:27 +0200 |
| Message-ID | <2097846.HcLxQdGF1S@PointedEars.de> |
| In reply to | #20731 |
Michael Haufe (TNO) wrote: > On Friday, July 19, 2013 3:20:57 PM UTC-5, jonas.t...@gmail.com wrote: >> As i said fuck off lowIQ code monkey, either you can write the >> codesnippet or you can't. I do not buy fucking halffabricates. So do not >> bother. > > "I do not enlighten those who are not eager to learn, > nor arouse those who are not anxious > to give an explanation themselves. > If I have presented one corner of the square > and they cannot come back to me with the other three, > I should not go over the points again." -- Confucius [x] sigged [x] +1 \\//, PointedEars -- I do not enlighten those who are not eager to learn, nor arouse those who are not anxious to give an explanation themselves. If I have presented one corner of the square and they cannot come back to me with the other three, I should not go over the points again. ─ Confucius (551–479 BCE)
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-19 15:10 -0700 |
| Message-ID | <06e06013-a38c-4b22-9522-e10ad58f44b4@googlegroups.com> |
| In reply to | #20738 |
Den fredagen den 19:e juli 2013 kl. 23:27:34 UTC+2 skrev Thomas 'PointedEars' Lahn: > Michael Haufe (TNO) wrote: > > > > > On Friday, July 19, 2013 3:20:57 PM UTC-5, jonas.t...@gmail.com wrote: > > >> As i said fuck off lowIQ code monkey, either you can write the > > >> codesnippet or you can't. I do not buy fucking halffabricates. So do not > > >> bother. > > > > > > "I do not enlighten those who are not eager to learn, > > > nor arouse those who are not anxious > > > to give an explanation themselves. > > > If I have presented one corner of the square > > > and they cannot come back to me with the other three, > > > I should not go over the points again." -- Confucius > > > > [x] sigged > > [x] +1 > > > > > > \\//, PointedEars > > -- > > I do not enlighten those who are not eager to learn, nor arouse those who > > are not anxious to give an explanation themselves. If I have presented > > one corner of the square and they cannot come back to me with the other > > three, I should not go over the points again. ─ Confucius (551–479 BCE) Yeah yeah you go on your little trip of teaching, i do hope it do you good between the time of buttpicking with peers, and i sincerely do hope you find some grasshoper eager to lick and eat your butthole while you are spewing your infinite words of wisdom.
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-19 15:21 -0700 |
| Message-ID | <7dd590a6-bd0e-4e6d-8711-829bf71b9d70@googlegroups.com> |
| In reply to | #20739 |
Den lördagen den 20:e juli 2013 kl. 00:10:19 UTC+2 skrev jonas.t...@gmail.com: > Den fredagen den 19:e juli 2013 kl. 23:27:34 UTC+2 skrev Thomas 'PointedEars' Lahn: > > > Michael Haufe (TNO) wrote: > > > > > > > > > > > > > On Friday, July 19, 2013 3:20:57 PM UTC-5, jonas.t...@gmail.com wrote: > > > > > > >> As i said fuck off lowIQ code monkey, either you can write the > > > > > > >> codesnippet or you can't. I do not buy fucking halffabricates. So do not > > > > > > >> bother. > > > > > > > > > > > > > > "I do not enlighten those who are not eager to learn, > > > > > > > nor arouse those who are not anxious > > > > > > > to give an explanation themselves. > > > > > > > If I have presented one corner of the square > > > > > > > and they cannot come back to me with the other three, > > > > > > > I should not go over the points again." -- Confucius > > > > > > > > > > > > [x] sigged > > > > > > [x] +1 > > > > > > > > > > > > > > > > > > \\//, PointedEars > > > > > > -- > > > > > > I do not enlighten those who are not eager to learn, nor arouse those who > > > > > > are not anxious to give an explanation themselves. If I have presented > > > > > > one corner of the square and they cannot come back to me with the other > > > > > > three, I should not go over the points again. ─ Confucius (551–479 BCE) > > > > Yeah yeah you go on your little trip of teaching, i do hope it do you good between the time of buttpicking with peers, and i sincerely do hope you find some grasshoper eager to lick and eat your butthole while you are spewing your infinite words of wisdom. Yeah a monkey with a stick and stone, is all that in the monkey world riding on a powertrip. I do not think anything really useful will be coming from watching him using it he is afterall a monkey.
[toc] | [prev] | [next] | [standalone]
| From | Scott Sauyet <scott@sauyet.com> |
|---|---|
| Date | 2013-07-20 17:54 +0000 |
| Message-ID | <XnsA2038E7A38600scottsauyetcom@78.46.70.116> |
| In reply to | #20740 |
jonas.thornvall@gmail.com wrote: > Yeah a monkey with a stick and stone, is all that in the monkey world > riding on a powertrip. > > I do not think anything really useful will be coming from watching him > using it he is afterall a monkey. Here's a little experiment: Do I have to offer helpful advice in order to get this guy to insult me? Or is simply responding in the thread enough? -- Scott
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-20 13:49 -0700 |
| Message-ID | <3694c226-810a-40eb-9274-b3f7d2484171@googlegroups.com> |
| In reply to | #20765 |
Den lördagen den 20:e juli 2013 kl. 19:54:16 UTC+2 skrev Scott Sauyet: > jonas.thornvall@gmail.com wrote: > > > > > Yeah a monkey with a stick and stone, is all that in the monkey world > > > riding on a powertrip. > > > > > > I do not think anything really useful will be coming from watching him > > > using it he is afterall a monkey. > > > > Here's a little experiment: > > > > Do I have to offer helpful advice in order to get this guy to insult me? > > Or is simply responding in the thread enough? > > > > -- Scott Not much of an experiment posting some halfbaked example fo noneworking code, claiming it to be excellent!!! would do it. Give it a try ;D
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-19 13:23 -0700 |
| Message-ID | <03d9ea0e-3ae7-407f-8871-e5bae2ffa7bc@googlegroups.com> |
| In reply to | #20725 |
Den fredagen den 19:e juli 2013 kl. 22:17:24 UTC+2 skrev Tim Streater: > In article <5b89005c-5938-4e1c-87bb-938d60c8949b@googlegroups.com>, > > jonas.thornvall@gmail.com wrote: > > > > > I have no idea about what it is about you anal code monkeys that annoy the > > > hell out of me, but if you spent less time butpicking eachothers ass, and > > > spent a minute to actually post the 7 line of code request i did, maybe i > > > come forward as more appreciating. > > > > Christ, a bigger arsehole than PointyHead. I didn't think it was > > possible. > > > > Pointy gave you some clues about why your code was not gonna work. Any > > reason you couldn't read that and apply it? Why should he or anyone else > > give you a complete solution; you aint gonna learn anything that way. > > Now shove off. > > > > -- > > Tim > > > > "That excessive bail ought not to be required, nor excessive fines imposed, > > nor cruel and unusual punishments inflicted" -- Bill of Rights 1689 This is how things work first you solve the problem and then you get anal about it if your ego take you to high, wrong approach first get anal without solve the problem.
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-19 13:30 -0700 |
| Message-ID | <79a2c55c-2443-4352-9674-a5b646dd03a5@googlegroups.com> |
| In reply to | #20725 |
Den fredagen den 19:e juli 2013 kl. 22:17:24 UTC+2 skrev Tim Streater: > In article <5b89005c-5938-4e1c-87bb-938d60c8949b@googlegroups.com>, > > jonas.thornvall@gmail.com wrote: > > > > > I have no idea about what it is about you anal code monkeys that annoy the > > > hell out of me, but if you spent less time butpicking eachothers ass, and > > > spent a minute to actually post the 7 line of code request i did, maybe i > > > come forward as more appreciating. > > > > Christ, a bigger arsehole than PointyHead. I didn't think it was > > possible. > > > > Pointy gave you some clues about why your code was not gonna work. Any > > reason you couldn't read that and apply it? Why should he or anyone else > > give you a complete solution; you aint gonna learn anything that way. > > Now shove off. > > > > -- > > Tim > > > > "That excessive bail ought not to be required, nor excessive fines imposed, > > nor cruel and unusual punishments inflicted" -- Bill of Rights 1689 And you do realise fucking monkey, it is only one line of code to write drawline oldstyle, 3 with pointyheads javascript approach, problem is it doesn't work because the fucker can not get his fucking canvas attributes correct in his examples. And i do not find the canvas that fucking interesting i just want to draw a line.
[toc] | [prev] | [next] | [standalone]
| From | "ViLco" <villiber@tin.it> |
|---|---|
| Date | 2013-07-23 14:59 +0200 |
| Message-ID | <kslub1$4ec$1@dont-email.me> |
| In reply to | #20725 |
Tim Streater wrote: >> I have no idea about what it is about you anal code monkeys that >> annoy the hell out of me, but if you spent less time butpicking >> eachothers ass, and spent a minute to actually post the 7 line of >> code request i did, maybe i come forward as more appreciating. > Christ, a bigger arsehole than PointyHead. I didn't think it was > possible. LOL!!! -- "Un pasto senza vino e' come un giorno senza sole" Anthelme Brillat Savarin
[toc] | [prev] | [next] | [standalone]
| From | Martin Leese <please@see.Web.for.e-mail.INVALID> |
|---|---|
| Date | 2013-07-19 14:30 -0600 |
| Message-ID | <ksc7aa$sif$1@dont-email.me> |
| In reply to | #20718 |
jonas.thornvall@gmail.com wrote: > I have no idea about what it is about you anal code monkeys that annoy the hell out of me, but if you spent less time butpicking eachothers ass, and spent a minute to actually post the 7 line of code request i did, maybe i come forward as more appreciating. I believe you meant "butt picking". Sorry, but I couldn't resist. After you have digested Example 21-4, you also might want to look at examples 21-5 through 21-13. All this code has been tested by the author of the book. -- Regards, Martin Leese E-mail: please@see.Web.for.e-mail.INVALID Web: http://members.tripod.com/martin_leese/
[toc] | [prev] | [next] | [standalone]
| From | jonas.thornvall@gmail.com |
|---|---|
| Date | 2013-07-19 13:40 -0700 |
| Message-ID | <beb37d81-af8c-45b2-8279-4a2eaa64892c@googlegroups.com> |
| In reply to | #20730 |
Den fredagen den 19:e juli 2013 kl. 22:30:45 UTC+2 skrev Martin Leese: > jonas.thornvall@gmail.com wrote: > > > > > I have no idea about what it is about you anal code monkeys that annoy the hell out of me, but if you spent less time butpicking eachothers ass, and spent a minute to actually post the 7 line of code request i did, maybe i come forward as more appreciating. > > > > I believe you meant "butt picking". Sorry, > > but I couldn't resist. > > > > After you have digested Example 21-4, you > > also might want to look at examples 21-5 > > through 21-13. All this code has been > > tested by the author of the book. > > > > -- > > Regards, > > Martin Leese > > E-mail: please@see.Web.for.e-mail.INVALID > > Web: http://members.tripod.com/martin_leese/ No need be sorry, once you go anal you just can't help it, can you. That is the life of a code monkey.
[toc] | [prev] | [next] | [standalone]
| From | "Michael Haufe (TNO)" <tno@thenewobjective.com> |
|---|---|
| Date | 2013-07-19 13:25 -0700 |
| Message-ID | <00324b28-f341-4c51-a19a-0e3e7da67e4b@googlegroups.com> |
| In reply to | #20714 |
On Friday, July 19, 2013 6:09:46 AM UTC-5, Thomas 'PointedEars' Lahn wrote: [...] > Apparently Walter Zorn's code *still* ranges high among the worst script > code that I have ever seen. > > That said, his is a completely different approach [...] s/is/was ? He is deceased I believe.
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-07-19 22:56 +0200 |
| Message-ID | <1795758.dMelTmJ8lt@PointedEars.de> |
| In reply to | #20728 |
Michael Haufe (TNO) wrote:
> […] Thomas 'PointedEars' Lahn wrote:
> [...]
>> Apparently Walter Zorn's code *still* ranges high among the worst script
>> code that I have ever seen.
>>
>> That said, his is a completely different approach [...]
>
> s/is/was ? He is deceased I believe.
According to <http://www.kreuzotter.de/impressum.htm>, you are correct.
This also explains why the last update was in 2009.
In that case the obituary should be along these lines:
He had some good ideas, but he had not yet acquired the skills to implement
all of them properly. He leaves the world with a challenging legacy.
From wz_tooltip.js:
function tt_ExtCmdEnum()
{
var s;
// Add new command(s) to the commands enum
for(var i in config)
{
s = "window." + i.toString().toUpperCase();
if(eval("typeof(" + s + ") == tt_u"))
{
eval(s + " = " + tt_aV.length);
tt_aV[tt_aV.length] = null;
}
}
}
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [next] | [standalone]
| From | Ken <so@abdiassoftware.com> |
|---|---|
| Date | 2013-08-26 22:08 -0500 |
| Message-ID | <kvh58s$huu$1@speranza.aioe.org> |
| In reply to | #20704 |
On 19.07.2013 03:50, jonas.thornvall@gmail.com wrote:
> I see examples using 2 parameters for moveTo and lineTo
>
> Is there no drawline using 4 parameters drawline((x,y)(x,y))
Sorry for jumping in so late; just wanted to add another neat trick you
can use by extending the canvas like this:
CanvasRenderingContext2D.prototype.line = function(x1, y1, x2, y2) {
this.moveTo(x1, y1);
this.lineTo(x2, y2);
}
Now you can call using your context like this:
context.line(10, 10, 100, 100);
context.stroke();
--
Ken Fyrstenberg
Abdias Software
http://abdiassoftware.com/
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> |
|---|---|
| Date | 2013-08-28 19:54 +0100 |
| Message-ID | <Al02CnA$dkHSFwpV@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #21052 |
In comp.lang.javascript message <kvh58s$huu$1@speranza.aioe.org>, Mon, 26 Aug 2013 22:08:06, Ken <so@abdiassoftware.com> posted: > >Sorry for jumping in so late; just wanted to add another neat trick you >can use by extending the canvas like this: > I have an addition for a dashed line of "any" pattern through any number of points with straight phase-coherent lines between them - dashTo, in <http://www.merlyn.demon.co.uk/inc-grfx.js>, demo in <http://www.merlyn. demon.co.uk/js-grphx.htm> (ReadFiles once, ReadText, but read ALL the page FIRST). -- (c) John Stockton, nr London UK Reply address via Home Page. news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>. <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
[toc] | [prev] | [next] | [standalone]
| From | Ken <usenet-so@abdiassoftware.com> |
|---|---|
| Date | 2013-08-28 18:56 -0500 |
| Message-ID | <kvm2ps$sqs$1@speranza.aioe.org> |
| In reply to | #21089 |
On 28.08.2013 13:54, Dr J R Stockton wrote: > I have an addition for a dashed line of "any" pattern through any number > of points with straight phase-coherent lines between them - dashTo, in FYI - Dashed lines are now supported natively in major browser with vendor prefixes. Not quite there yet as to uniformity but usable when used in a wrapper function. Webkit (Chrome): context.setLineDash(pattern); // array, ie. [5, 2, ...] context.lineDashOffset = offset; For Mozilla: context.mozDash = pattern; // array context.mozDashOffset = offset; -- Ken Fyrstenberg Abdias Software http://abdiassoftware.com/ (remove usenet- from address)
[toc] | [prev] | [next] | [standalone]
| From | Dr J R Stockton <reply1300@merlyn.demon.co.uk.invalid> |
|---|---|
| Date | 2013-08-30 20:17 +0100 |
| Message-ID | <nUAvOysS$OISFw3e@invalid.uk.co.demon.merlyn.invalid> |
| In reply to | #21091 |
In comp.lang.javascript message <kvm2ps$sqs$1@speranza.aioe.org>, Wed, 28 Aug 2013 18:56:41, Ken <usenet-so@abdiassoftware.com> posted: > >Dashed lines are now supported natively in major browser with vendor >prefixes. Not quite there yet as to uniformity but usable when used in >a wrapper function. Useful to know, thanks. Added as comment to inc-grfx.js. -- (c) John Stockton, nr London UK Reply address via Home Page. news:comp.lang.javascript FAQ <http://www.jibbering.com/faq/index.html>. <http://www.merlyn.demon.co.uk/js-index.htm> jscr maths, dates, sources. <http://www.merlyn.demon.co.uk/> TP/BP/Delphi/jscr/&c, FAQ items, links.
[toc] | [prev] | [next] | [standalone]
| From | Thomas 'PointedEars' Lahn <PointedEars@web.de> |
|---|---|
| Date | 2013-09-01 16:18 +0200 |
| Message-ID | <1766109.DDZJyr5NI7@PointedEars.de> |
| In reply to | #21052 |
Ken wrote:
> On 19.07.2013 03:50, jonas.thornvall@gmail.com wrote:
>> I see examples using 2 parameters for moveTo and lineTo
>>
>> Is there no drawline using 4 parameters drawline((x,y)(x,y))
>
> Sorry for jumping in so late; just wanted to add another neat trick you
> can use by extending the canvas like this:
>
> CanvasRenderingContext2D.prototype.line = function(x1, y1, x2, y2) {
> this.moveTo(x1, y1);
> this.lineTo(x2, y2);
> }
>
> Now you can call using your context like this:
>
> context.line(10, 10, 100, 100);
> context.stroke();
Augmenting the prototype object of host objects is not necessarily possible;
implementing a DOM interface does not require its implementation as a
constructor-like object of the same name.
Where have you successfully tested this?
--
PointedEars
Twitter: @PointedEars2
Please do not Cc: me. / Bitte keine Kopien per E-Mail.
[toc] | [prev] | [standalone]
Page 2 of 2 — ← Prev page 1 [2]
Back to top | Article view | comp.lang.javascript
csiph-web