Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

simpler balloon encoding into image #14

Open
maandree opened this issue Apr 3, 2013 · 1 comment
Open

simpler balloon encoding into image #14

maandree opened this issue Apr 3, 2013 · 1 comment

Comments

@maandree
Copy link
Owner

maandree commented Apr 3, 2013

Idea from: https://github.com/jaseg/pixelterm
$balloon20,5$ should be possible to encode as a 20×10 rectangle.

This makes it easy to draw even the balloon in the GIMP.

maandree added a commit that referenced this issue Apr 6, 2013
Signed-off-by: Mattias Andrée <[email protected]>
@maandree
Copy link
Owner Author

maandree commented Apr 6, 2013

Untested and undocumentented.
Current status: Minimum width only supported and only supported for import.
Colour designation: argb(100, 0, 255, 0)

Goal: Support for minimum/maximum width/height.
Minimum colour: argb(100, 0, 255, 0)
Maximum colour: argb(100, 255, 255, 0)
As well as offset (left/top) support, with colour: argb(100, 0, 255, 255)

Justification could be encoded on the bottom left pixel:
Alpha xor:ed by 0x80 to toggle: Pony.Balloon.LEFT
Red xor:ed by 0x80 to toggle: Pony.Balloon.RIGHT
(LEFT | RIGHT = CENTRE)
Green xor:ed by 0x80 to toggle: Pony.Balloon.TOP
Bluee xor:ed by 0x80 to toggle: Pony.Balloon.BOTTOM
(TOP | BOTTOM → MIDDLE)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant