Why do you think it's a job for Athens? Shouldn't it be in a geometry lib?

--

Best regards,


Dennis Schetinin


2013/11/15 kilon alios <kilon.al...@gmail.com>

> So here we are with my first challenge.  I am making Hyperion, a vector
> graphics editor using Athens , so far I have a nice line with several
> segments, I have added nice handlers to allow me to move the points (start
> and end of each segment) of the line around with the mouse, but now I want
> each time I click on a segment itself to create a new point.This way I will
> create more points with the mouse and bring more detail to the shape of the
> line / path.
>
> In order to do that I will have to check that the line passes through a
> specific pixel. Or to be more correct that the place that mouse has clicked
> is where my path passes through. How I do that ? Can Athens do that ? Can
> athens tell me which pixels my path passes through ?
>
> At first I thought to return the Athens surface as a Form but the form
> will give me back the colors of each pixel on a specific place, but that
> does not guarantee  that my line / path passes through those pixels.
>

Reply via email to