Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html>
<head>
<title>Tracking mouse position on canvas</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=egde,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<canvas id=traces width=500 height=500>
@rasteron
rasteron / Impact3D.js
Created June 24, 2019 14:34 — forked from chribbe/Impact3D.js
Helper to handle three.js objects to render an impactJS game
impact3D = {};
impact3D.models = impact3D.models || {};
impact3D.entities = impact3D.entities || {};
impact3D.player = impact3D.player || {};
impact3D.scene = null;
impact3D.updateCount = 0;
impact3D.init = function(scene)
{
console.log(" ***impact3D Init *** ");
@rasteron
rasteron / graphik.md
Created June 10, 2019 08:29 — forked from mfd/ graphik.md
Graphik LCG font
https://cdn.rawgit.com/mfd/e7842774e037edf15919037594a79b2b/raw/665bdfc532094318449f1010323c84013d5af953/graphik.css

<link rel="stylesheet prefetch" href="https://cdn.rawgit.com/mfd/e7842774e037edf15919037594a79b2b/raw/665bdfc532094318449f1010323c84013d5af953/graphik.css">

@rasteron
rasteron / remove_crw.cmd
Created May 14, 2019 08:05 — forked from xvitaly/remove_crw.cmd
Remove telemetry updates for Windows 7 and 8.1
@echo off
echo Uninstalling KB3075249 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3075249 /quiet /norestart
echo Uninstalling KB3080149 (telemetry for Win7/8.1)
start /w wusa.exe /uninstall /kb:3080149 /quiet /norestart
echo Uninstalling KB3021917 (telemetry for Win7)
start /w wusa.exe /uninstall /kb:3021917 /quiet /norestart
echo Uninstalling KB3022345 (telemetry)
start /w wusa.exe /uninstall /kb:3022345 /quiet /norestart
echo Uninstalling KB3068708 (telemetry)
@rasteron
rasteron / test.csv
Created April 2, 2018 12:02
Test CSV
hello world one
hello world two
#include "Uniforms.glsl"
#include "Samplers.glsl"
#include "Transform.glsl"
#include "ScreenPos.glsl"
#include "Lighting.glsl"
varying vec2 vScreenPos;
uniform float amount = 1.0;
const vec4 coeff = vec4(0.299,0.587,0.114, 0.);
<renderpath>
<command type="quad" tag="Vibrance" vs="Vibrance" ps="Vibrance" output="viewport">
<texture unit="diffuse" name="viewport" />
</command>
</renderpath>
#include "Uniforms.glsl"
#include "Samplers.glsl"
#include "Transform.glsl"
#include "ScreenPos.glsl"
#include "Lighting.glsl"
varying vec2 vScreenPos;
uniform vec2 resolution = vec2(1366, 768);
const float max_distort = 2.2;
<renderpath>
<command type="quad" tag="ChromaticAberration" vs="ChromaticAberration" ps="ChromaticAberration" output="viewport">
<texture unit="diffuse" name="viewport" />
</command>
</renderpath>
#include "Uniforms.glsl"
#include "Samplers.glsl"
#include "Transform.glsl"
#include "ScreenPos.glsl"
varying vec2 vScreenPos;
#ifdef GL_ES
precision mediump float;
#endif