43 lines · 455 B · C
RawDownload
#include <u.h>#include <libc.h>#include <draw.h>#include <memdraw.h>#include <geometry.h> #include "scene.h" Colourcsum(Colour a, Colour b){	Colour c; 	c.r = a.r + b.r;	c.g = a.g + b.g;	c.b = a.b + b.b; 	return c;} Colourcscale(Colour a, double b){	Colour c; 	c.r = a.r * b;	c.g = a.g * b;	c.b = a.b * b; 	return c;} Colourcmul(Colour a, Colour b){	Colour c; 	c.r = a.r * b.r;	c.g = a.g * b.g;	c.b = a.b * b.b; 	return c;}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t