Dot

Emulates a seven-segment display by grouping pixels into dots.

Parameters

texture Texture: The input texture to be filtered. Default: The entire canvas
dotSize Float: The size of each dot in the display. Default: 0.008

Example

import fip.*;

PShader dot;
PImage ireland;

void setup() {
  size(1000, 1000, P3D);

  dot = loadShader(FIP.dot);

  ireland = loadImage("ireland.jpg");
  dot.set("dotSize", 0.008);
}

void draw() {
  image(ireland, 0, 0, width, height);

  filter(dot);
}