Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

 3 Fix copy-paste markup error edited Nov 17 '15 at 21:50 Peter Taylor 41.7k44 gold badges5757 silver badges151151 bronze badges I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone. GLSL vec3 xy2rgb3( in vec2 pos ) {
vec2 rc = pos * 8.0;
0; vec2 mp = fract( rc );
; rc = (rc - mp) * 0.125;
125; return vec3( (rc.y * 0.125) + rc.x, mp );
; }  The live editable version can be found here xy2rgb3/rgb3toxy2. I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone. GLSL vec3 xy2rgb3( in vec2 pos ) {
vec2 rc = pos * 8.0;
vec2 mp = fract( rc );
rc = (rc - mp) * 0.125;
return vec3( (rc.y * 0.125) + rc.x, mp );
}  The live editable version can be found here xy2rgb3/rgb3toxy2. I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone. GLSL vec3 xy2rgb3( in vec2 pos ) { vec2 rc = pos * 8.0; vec2 mp = fract( rc ); rc = (rc - mp) * 0.125; return vec3( (rc.y * 0.125) + rc.x, mp ); }  The live editable version can be found here xy2rgb3/rgb3toxy2. 2 Code snippet formatry edited Nov 17 '15 at 21:36 SuperJedi224 11.3k11 gold badge3535 silver badges6464 bronze badges I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone. GLSL vec3 xy2rgb3( in vec2 pos ) { vec2 rc = pos * 8.0; vec2 mp = fract( rc ); rc = (rc - mp) * 0.125; return vec3( (rc.y * 0.125) + rc.x, mp ); }vec3 xy2rgb3( in vec2 pos ) {
vec2 rc = pos * 8.0;
vec2 mp = fract( rc );
rc = (rc - mp) * 0.125;
return vec3( (rc.y * 0.125) + rc.x, mp );
}  The live editable version can be found here xy2rgb3/rgb3toxy2. I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone. GLSL vec3 xy2rgb3( in vec2 pos ) { vec2 rc = pos * 8.0; vec2 mp = fract( rc ); rc = (rc - mp) * 0.125; return vec3( (rc.y * 0.125) + rc.x, mp ); } The live editable version can be found here xy2rgb3/rgb3toxy2. I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone. GLSL vec3 xy2rgb3( in vec2 pos ) {
vec2 rc = pos * 8.0;
vec2 mp = fract( rc );
rc = (rc - mp) * 0.125;
return vec3( (rc.y * 0.125) + rc.x, mp );
}  The live editable version can be found here xy2rgb3/rgb3toxy2. 1 answered Nov 17 '15 at 21:34 lardratboy 3122 bronze badges I know I'm a late to this discussion but I thought I would post my attempt to this thread just in case it is useful/interesting to anyone. GLSL vec3 xy2rgb3( in vec2 pos ) { vec2 rc = pos * 8.0; vec2 mp = fract( rc ); rc = (rc - mp) * 0.125; return vec3( (rc.y * 0.125) + rc.x, mp ); } The live editable version can be found here xy2rgb3/rgb3toxy2.