Scenic.Assets.Stream.Bitmap.put

You're seeing just the function put, go back to Scenic.Assets.Stream.Bitmap module for more information.
Link to this function

put(mutable, x, y, color)

View Source

Specs

put(
  mutable :: m(),
  x :: pos_integer(),
  y :: pos_integer(),
  color :: Scenic.Color.t()
) :: mutable :: m()

Set the color value of a single pixel in a bitmap.

Only works with mutable bitmaps.

The color you provide can be any valid value from the Scenic.Color module.

If the color you provide doesn't match the depth of the bitmap, this will transform the color as appropriate to fit. For example, putting an :rgb color into a :g (greyscale) bit map, will set the level of grey to be the average value of the red, green, and blue channels of the supplied color