Bitmap
Thanks to the rw
trait on the pixel
method, we don't actually need to define two separate methods, set-pixel
and get-pixel
, but that is an explicit requirement of the task. (Beware your presuppositions! In Raku, accessors only determine identity, not use. In particular, identity is considered orthogonal to lvalue/rvalue context.)
Last updated