scribble.rs icon indicating copy to clipboard operation
scribble.rs copied to clipboard

Proposal for a standard on how to draw shapes

Open BigETI opened this issue 3 years ago • 2 comments

If we want all clients to behave the same in context of how they should draw on their drawing boards, then we need a standard for how to programmitcally implement drawing algorithms. We could provide pseudo code that explains how to rasterize drawable shapes.

BigETI avatar Feb 22 '21 02:02 BigETI

Guess we could just see what's the easiest to maintain and write while still giving best possible performance and write that pseudo code. Fill and simple lines I guess. Whether clients antialias in the end or even make a fill algorithm that takes antialiasing into account is up to them.

Bios-Marcel avatar Feb 22 '21 20:02 Bios-Marcel

I think drawing board dimensions and scaling should also be specified and implemented.

For example a base board size of 1280x720 that can be scaled in full integer steps, e.g. 2560x1420. Drawing commands should always be sent in the base coordinates.

This would solve the problem of mismatching drawing commands on different screens. (#278)

(I know I suggested this before, but I strand by it)

SZenglein avatar Jun 16 '21 00:06 SZenglein

Meh, won't do shapes.

Bios-Marcel avatar Nov 05 '23 13:11 Bios-Marcel