Skip to content

Commit

Permalink
normal: don't produce unusable colors
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed May 7, 2020
1 parent 94e4280 commit 5d3d99c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/demo/normal.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#include <complex.h>

static const int VSCALE = 2;
static const int ITERMAX = 256;
static const int ITERMAX = 255;

static int
mandelbrot(int y, int x, int dy, int dx){
Expand All @@ -23,7 +23,7 @@ mandelbrot(int y, int x, int dy, int dx){
static int
mcell(uint32_t* c, int y, int x, int dy, int dx){
int iter = mandelbrot(y, x, dy, dx);
*c = ((256 - iter) << 24u) + ((256 - iter) << 16u) + ((256 - iter) << 8u);
*c = ((255 - iter) << 24u) + ((255 - iter) << 16u) + ((255 - iter) << 8u);
return 0;
}

Expand Down

0 comments on commit 5d3d99c

Please sign in to comment.