Sha256: 4db7fd053a7c0548b9b426248b0b080bfc536500bcd2d378032e007441aa194c

Contents?: true

Size: 152 Bytes

Versions: 4

Compression:

Stored size: 152 Bytes

Contents

#include "ray.h"

uint8_t ray_byte_clamp(int color) {
  if (color > 255)
    return 255;
  else if (color < 0)
    return 0;
  else
    return color;
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ray-0.2.1 ext/utils.c
ray-0.2.0 ext/utils.c
ray-0.1.1 ext/utils.c
ray-0.1.0 ext/utils.c