Accueil › Forums › Programmation WIMS › Programmation d’exercices OEF › jsxgraphcurve et bordure › Répondre à : jsxgraphcurve et bordure
Bonjour Julien,
Merci pour ton aide. Même si ta solution ne résoud pas entièrement la question, elle m’a mis sur la bonne voie. Et je t’en remercie grandement.
Eric
Voici le code qui fonctionne :
\text{bordure=30}
\text{xd=200}
\text{yd=200}
\text{A=slib(draw/repere \xd,\yd,\bordure,\xmin-1,\xmax+1,\ymin-1,\ymax+1,,,red,blue)}
\text{B=\xd,\yd,\A[3..-1]}
\text{dessin=draw(
\B
)
}
\text{ptc=}
\for{i=1 to \n}{
\text{ptcc=slib(draw/convpixel \rang[\i],\ca[\i],\xd,\yd,\xmin,\xmax,\ymin,\ymax,\bordure,pixels)}
\text{ptc=\ptc,simplify((\xd-2*\bordure)*(\ptcc[1]+\bordure)/\xd+\bordure),simplify((\yd-2*\bordure)*(\ptcc[2]+\bordure)/\yd+\bordure)}
}
\text{ptc=wims(nonempty items \ptc)}