Difference between revisions of "MakeGray"
From WikiPrizm
Jump to navigationJump to search (Created page with "== Synopsis == creates a two-byte 5/6/5 color code == Source code == <nowiki>int makeGray(int shade) { return shade * 0x0841; }</nowiki> == Inputs == shade which can be b...") |
|||
Line 1: | Line 1: | ||
== Synopsis == | == Synopsis == | ||
− | + | Creates a two-byte 5/6/5 color code based on a grey value. | |
== Source code == | == Source code == |
Latest revision as of 20:34, 17 April 2014
Contents
Synopsis
Creates a two-byte 5/6/5 color code based on a grey value.
Source code
int makeGray(int shade) { return shade * 0x0841; }
Inputs
shade which can be between 0 (black) and 31 (white).
Comments
Function originally written by calc84maniac.