~alcinnz/Mondrian#1: 
Borders

Need to handle border--style & border--color.

Status
REPORTED
Submitter
~alcinnz
Assigned to
No-one
Submitted
10 months ago
Updated
10 months ago
Labels
No labels applied.

~alcinnz 10 months ago

Simplest to upload the trapagon to the GPU, but helps prepare for rounded corners & reuse existing abstractions if I combined all borders into a single geometry.

border-color's trivial.

border-style: none or hidden considers not performing the rendering. CatTrap has to treat border-style: none specially to 0 out width.

dashed splits into 2width segments & alternate between fill & transparent. dotted measures distance from segment edges.

solid sets all pixels to the same colour. double splits width into 4 & fills outside segments.

groove, ridge, inset, & outset splits width in half, increments colour in one half, halves in the other.

Register here or Log in to comment, or comment via email.