# Directional halo on 2D graphic

**URL:** <https://discourse.processing.org/t/directional-halo-on-2d-graphic/29832>\
**Category:** Processing\
**Created:** [May 3, 2021, 9:40pm UTC](https://discourse.processing.org/t/directional-halo-on-2d-graphic/29832 "2021-05-03T21:40:57Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![th75](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@th75](https://discourse.processing.org/u/th75)\
**Post date:** [May 3, 2021, 11:57pm UTC](https://discourse.processing.org/t/directional-halo-on-2d-graphic/29832/2 "2021-05-03T23:57:02Z")

</div>

i will start from something like:

```auto
PImage screen;
void setup() {
  size(400, 400);  
  frameRate(25);
  screen=createImage(width, height, RGB);
  stroke(255);
  fill(255);
  rectMode(CENTER);
  background(0);
}

void draw() {
  //fade
  tint(color(255-random(34), 255-random(34), 255-random(34)), 245);
  image(screen, 4*sin(((float)frameCount)/10.0), -1);

  //main image
  rect(width/2, height/2, 55+44*sin(((float)frameCount)/30.0), 55+14*sin(((float)frameCount)/14.0));
  loadPixels();
  screen=this.copy();
}

```

and doing some pixels manipulation more complex than tint()

---

_[View the full topic](https://discourse.processing.org/t/directional-halo-on-2d-graphic/29832)._
