Author Topic: Quadratic Formula  (Read 56 times)

PiotrGrochowski

  • Administrator
  • Newbie
  • *****
  • Posts: 4
    • View Profile
Re: Quadratic Formula
« on: September 26, 2020, 06:27:42 pm »
The best known way is Six Pass Pixel Building:

1. Trace all edges on the left side, rounding the vertical boundaries of bezier curve to the nearest (if half, up) and increment the pixel values of all pixels to the right. (first pass)
2. Trace all edges on the right side, rounding the vertical boundaries of bezier curve to the nearest (if half, up) and decrement the pixel values of all pixels to the right. (second pass)
3. Create a new pixel buffer, and do steps 1 and 2 but rounding half down instead. (third and fourth pass)
4. Merge the pixel buffer into the main buffer by taking the maximum value of each.
5. Trace all edges on the top side, rounding the horizontal boundaries of bezier curve to the nearest (if half, up) and increment the pixel values of all pixels below. (fifth pass)
6. Trace all edges on the bottom side, rounding the horizontal boundaries of bezier curve to the nearest (if half, up) and decrement the pixel values of all pixels below. (sixth pass)
7. Now each inside pixel is of value 2, or 1. Each value greater than 0 or less than -1 is a filled pixel.

Done! Now go do dropout control on https://pixelbuilding.createaforum.com/quadratic-pixel-building/dropout-control/