Hi Alex,

> Hi Jon,
>
>> > Do you mean the box around the whole canvas (there is no dedicated
>> > X-axis)? In fact, the box is not part of the canvas itself, but
>> appears
>> > because of the CSS style "canvas {border: 1px solid}".
>>
>> No, I mean the redish horizontal line in the middle of the canvas. You
>> can
>
> Ah, right! Yes, that's indeed a kind of X-axis :)
>
>
>> see an example of sharp (1px) horizontal and vertical lines if you go to
>> my
>> <http://folk.uio.no/jkleiser/pico/emuLisp/console.html>
>> and evaluate e.g. '(1 (2 3)) - then look in the canvas to the right.
>> What
>> I do in this console.html is this:
>> ctx.translate(16.5, 16.5);
>> It's the ".5" that does the trick.
>
> OK. So this could be written as (csTranslate "16.5" "16.5") in PicoLisp?

Yes, I guess that should work.

> Another possibility would be to set (csLineWidth "0.5"), right?
>
> ?? Alex

I would have to try that csLineWidth before I can say if it works. I guess
it could make the color of the line somewhat paler than what you intended.

/Jon

-- 
UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe

Reply via email to