my idea is, that you define a const array like: CPokeballColors: array[0..3] of TAsciiImagePaintContext = ( (FollColor: clBlack; StrokeColor: clBlack; PenSize: 1) ... ); Still very simple, but more readable
Paul TOTH The advantage of still using ascii-art instead of directly specifying shapes is, that you see what it looks like(sort of). And colors are assigned by order. If it has 8 shapes, you'd have to add 8 entries.(year a bit repetetive but simple)
my idea is, that you define a const array like:
ReplyDeleteCPokeballColors: array[0..3] of TAsciiImagePaintContext = (
(FollColor: clBlack; StrokeColor: clBlack; PenSize: 1)
...
);
Still very simple, but more readable
then you can also define Shapes, no need of Ascii Art ;)
ReplyDeletePokeBall = array [0..2] of Shape = (
(Kind: Circle, Color: Red ...
);
and how will you load this colors from a text file or a Database ? how will you make them related to the pokeball shape ?
Anyway, that's your project, thank you for sharing it ;)
Paul TOTH
ReplyDeleteThe advantage of still using ascii-art instead of directly specifying shapes is, that you see what it looks like(sort of). And colors are assigned by order. If it has 8 shapes, you'd have to add 8 entries.(year a bit repetetive but simple)