Skip to content

Instantly share code, notes, and snippets.

View chikatoike's full-sized avatar

chikatoike chikatoike

View GitHub Profile
@chikatoike
chikatoike / Program.fs
Created July 28, 2013 04:48
F# WPF HLSL Shader
// http://blogs.msdn.com/b/hiroyuk/archive/2010/09/28/10068491.aspx
open System
open System.Windows
open System.Windows.Controls
open System.Windows.Media.Imaging
open System.Windows.Media.Effects
type MyEffect() as this =
@chikatoike
chikatoike / FloodFill.fs
Created July 28, 2013 04:53
FloodFill (WIP)
open System
open System.Windows
open System.Windows.Controls
open System.Windows.Media.Imaging
open System.Windows.Media.Effects
open System.Diagnostics
open System.Collections.Generic
let fillBmp pixels color =
Array.fill pixels 0 pixels.Length color