Bitmap manipulation functions #124

Open
opened 2025-06-30 15:30:31 +02:00 by riki · 0 comments
Owner

haku should have the possibility to work with bitmap images and paint them onto the wall. For starters, I think we should have the following functions:

capture
  r : rectangle
  -> image

paint
  i : image
  destination : rectangle
  -> scribble

paint
  i : image
  destination : rectangle
  source : rectangle
  -> scribble
  • capture takes a picture of the wall. You give it a rectangle to capture, it returns an image containing the contents of that rectangle.
  • paint paints and image onto the wall. You can select a source rectangle on the image if you'd like.

Things I'm not so sure about:

  • What about scale factors? wrapping behaviours?
  • Is haku going to have enough memory to store image bitmaps?
haku should have the possibility to work with bitmap images and paint them onto the wall. For starters, I think we should have the following functions: ```haku capture r : rectangle -> image paint i : image destination : rectangle -> scribble paint i : image destination : rectangle source : rectangle -> scribble ``` - `capture` takes a picture of the wall. You give it a rectangle to capture, it returns an image containing the contents of that rectangle. - `paint` paints and image onto the wall. You can select a source rectangle on the image if you'd like. Things I'm not so sure about: - What about scale factors? wrapping behaviours? - Is haku going to have enough memory to store image bitmaps?
riki added the
goal/wie
area/haku
area/frontend
labels 2025-06-30 15:31:35 +02:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: riki/rkgk#124
No description provided.