grid world and discrete (aliased) lines

  • Thread starter Thread starter Francois Vanderseypen
  • Start date Start date
F

Francois Vanderseypen

Imagine a discrete 2D space of any size. Say, you have a 100x100 pixels
(.net) panel and you have discrete cells of 10x10 pixels. Thinking e.g. of
the game of life.
I would like to draw a line in this discrete space, but it can't be smooth,
it has to be aliased or in a block-form corresponding to the pixel
resolution of the underlying space. How to approximate a 'Graphics.DrawLine'
in function of the pixelated space?

Thanks for your help.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top