Pattern(3I)

✨ Pattern(3I) ✨

okay bestie so we're diving into the InterViews manual and today's main character is Pattern πŸ’… like yes, the <InterViews/pattern.h> girlies know.


🌸 NAME 🌸

Pattern β€” fill patterns, periodt.


πŸŽ€ SYNOPSIS πŸŽ€

#include <InterViews/pattern.h>

πŸ¦‹ DESCRIPTION πŸ¦‹

So basically, a pattern defines how you fill areas during graphics operations. It's essentially a mask for drawing that gets replicated until it fills the whole size of the destination. it's giving wallpaper energy fr fr 🫢

N.B.: patterns are relatively low-level objects, typically used to implement an alpha value for a color. But bestie, listen β€” since the color object now supports an alpha value, there is no need to use patterns. so like… they're kind of retired πŸ’€ but we still love her.

πŸ‘‘ PUBLIC OPERATIONS πŸ‘‘

  • Pattern() β€” creates a solid pattern. simple, clean, no notes ✨
  • Pattern(char*, unsigned int width, unsigned int height) β€” creates a pattern with the given width and height, using the bits described by the first parameter. the way that first arg carries all the bit info… iconic.
  • Pattern(int) β€” creates a 4x4 pattern determined from the least significant 16 bits of the parameter. sixteen bits and she's ready to serve 🌈
  • Pattern(int*) β€” constructs a 16x16 pattern from the given data. ⚠️ this function is provided solely for backward compatibility and will be removed in the future. so like, use it if you must but don't get attached, she's leaving 😭
  • Pattern(Bitmap*) β€” constructs a pattern from the bitmap. if necessary, the bitmap will be tiled or truncated to satisfy window system requirements for fill pattern sizes. adaptable queen 🧚

πŸ’– SEE ALSO πŸ’–

  • Painter(3I)

and that's the tea, bestie πŸ’œ this was Pattern(3I) from the InterViews Reference Manual β€” go forth, fill your areas, and slay πŸŽ€βœ¨πŸ¦‹πŸ’