Re: Drawing floating-point lines with Bresenham
- From: ti_chris <tiChris08@xxxxxxxxx>
- Date: Thu, 17 Jul 2008 02:49:59 -0700 (PDT)
Cool. I don't know if this is a personal project or not. But you can
easilly achieve greyscale (still) with a black and white device if you
modulate the way you render the pages. aka: If you constantly flip
between 2 screens, you can achieve 4 colors (black, white, light gray,
dark gray). Essentially, it goes by saying that if the pixel is lit
all half the time, you can achieve a (half black/half white) pixel
which is gray. if the pixel is on 75% of the time, you can achieve a
darker version of it and etc.
Anyhow I digress, I would suggest using fixed points. It sounds like
you found an answer to your question either way.
On Jul 16, 6:29 am, Thomas Kindler <mail+n...@xxxxxxxxxxxx> wrote:
ti_chris wrote:
Hi Chris!
I'm not sure what you are using this for.
It's a graphics library for a small embedded controller with a 128x64
LCD (black & white only, no grayscales).
But chances are, you want an antialised lines in which case this
> algorithm is not ideal for [..]
No. I do not want antialiasing. I'd like to draw Bresenham lines, but
with floating-point endpoints.
(This really matters if you try to draw animated 3d graphics, which look
jerky if you round the endpoints before drawing the lines).
--
"Zuse, Zuse" sprach die Tante, als das Rechenzimmer brannte.
.
- Follow-Ups:
- Re: Drawing floating-point lines with Bresenham
- From: Thomas Kindler
- Re: Drawing floating-point lines with Bresenham
- References:
- Drawing floating-point lines with Bresenham
- From: Thomas Kindler
- Re: Drawing floating-point lines with Bresenham
- From: ti_chris
- Re: Drawing floating-point lines with Bresenham
- From: Thomas Kindler
- Drawing floating-point lines with Bresenham
- Prev by Date: Offers on 1 GB Pen Drive***
- Next by Date: Re: Drawing floating-point lines with Bresenham
- Previous by thread: Re: Drawing floating-point lines with Bresenham
- Next by thread: Re: Drawing floating-point lines with Bresenham
- Index(es):
Relevant Pages
|