Accueil › Forums › Programmation WIMS › Programmation d’exercices OEF › dashed arrows not dashed in canvasdraw
- Ce sujet contient 4 réponses, 3 participants et a été mis à jour pour la dernière fois par
jm.evers, le il y a 2 mois.
-
AuteurMessages
-
-
18 février 2021 à 15:13 #6235
byache
ParticipantHello,
I think there is a miscellaneous with the « dashed » keyword in canvasdraw : in the example bellow, the green arrow appears not dashed.\text{sol=wims(exec canvasdraw size 750,450 xrange -15,15 yrange -9,9 opacity 155,155 linewidth 1 grid 1,1,grey opacity 255,255 linewidth 2 fontfamily 18px Arial dashtype 2,2 darrow -5,2,3,5,10,blue arrow -5,6,1,2,10,red darrow 5,4,7,3,10,green )} \statement{\sol}
The doc recommands to write
dashed arrow ...
but the result is the same.
If I change the color, same problem but if I change any coordinates, I strangely may obtain the dashed…
-
18 février 2021 à 15:57 #6236
bernadette
Maître des clés -
18 février 2021 à 18:35 #6237
jm.evers
ParticipantHi,
This is clearly a bug in canvasdraw arrow(s)
I will have to look into this…and see if there are any other mis behaviours with dashing,,,
(other primitives like lines,hlines,segments etc do not show this error)size 400,400 xrange -10,10 yrange -10,10 linewidth 2 dashtype 4,2 dsegment 0,0,5,5,red dsegment 0,0,-5,5,blue dsegment 0,0,5,-5,green dsegment 0,0,-5,-5,orange dashtype 2,6 dhline 0,-5,red dhline 0,-4,blue dhline 0,-3,green dhline 0,-2,orange dvline -5,0,red dvline -4,0,blue dvline -3,0,green dvline -2,0,orange
joke
-
Cette réponse a été modifiée le il y a 2 mois par
jm.evers.
-
Cette réponse a été modifiée le il y a 2 mois par
-
18 février 2021 à 22:57 #6246
-
19 février 2021 à 13:08 #6264
jm.evers
ParticipantUploaded to SVN a slightly improved version of canvasdraw
- dashing will still depend on angle of the object (html5 canvas ‘flaw’)
- dashing will still depend on individual browser
- corrected dashing in userdraw,multidraw
- corrected arrow head (it was dashed…)
Thank you for noticing !
(and please keep kicking it to find flaws and bugs !)joke
-
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.