1,295
edits
(Created page with "== Problem Statement == Our border-rendering problem can be reduced to the following parameters: * For each side, a border style: one of SOLID, DASHED, DOTTED. * For each side, ...") |
|||
| Line 9: | Line 9: | ||
== Approach == | == Approach == | ||
# Divide the border into | # Divide the border into 8 pieces (some of which may be empty): 4 corners and 4 straight sides. We can do simpler/faster things for the straight-sides pieces. | ||
simpler/faster things for sides. | |||
# For each pixel: | # For each pixel: | ||
## Compute the value of the pixel as if all border styles are SOLID | ## Compute the value of the pixel as if all border styles are SOLID | ||
edits