Showing content from https://blog.johnnovak.net/2016/09/21/what-every-coder-should-know-about-gamma/src/gradient.nim below:
import math import glm import util/framebuf import util/color proc horizGradient(fb: var Framebuf, ox, oy, w, h: Natural, c1, c2: Vec3[float32], sRGB: bool = false) = let sr = (c2.r - c1.r) / w.float32 sg = (c2.g - c1.g) / w.float32 sb = (c2.b - c1.b) / w.float32 let dc = vec3[float32](sr, sg, sb) var c = c1 cc: Vec3[float32] for x in ox..
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4