Skip to content

Instantly share code, notes, and snippets.

@mathdoodle
mathdoodle / README.md
Last active February 18, 2018 22:48
Ice Cream

Ice Cream using HTML5 Canvas API

Credits

This example is taken from the Sitepoint book, JavaScript? (cite required).

@mathdoodle
mathdoodle / extras.ts
Last active January 13, 2021 03:40
Color Grid
//
@mathdoodle
mathdoodle / README.md
Last active July 7, 2020 22:00
Fundamental Theorem of Algebra

Fundamental Theorem of Algebra

@mathdoodle
mathdoodle / Camera.ts
Last active July 8, 2020 04:24
Ray Tracer
import { cross } from './gibbs'
import { Vector } from './Vector'
/**
* A reference frame consiting of three orthonormal vectors.
* The camera also has a position property.
* The down direction is assumed to be -e2.
*/
export class Camera {
/**
@mathdoodle
mathdoodle / doodle.json
Last active August 29, 2015 14:22
Complex Exponential
{
"uuid": "74616ba8-b76d-4bed-b4ef-46d8396e03a0",
"description": "Complex Exponential",
"dependencies": {
"DomReady": "latest",
"davinci-mathbox": "latest",
"davinci-blade": "1.1.1"
},
"operatorOverloading": false
}
@mathdoodle
mathdoodle / doodle.json
Last active August 29, 2015 14:22
Axis Labeling
{
"uuid": "5fa27fe7-8c12-4360-982b-47feb33c8c50",
"description": "Axis Labeling",
"dependencies": {
"DomReady": "latest",
"davinci-mathbox": "1.0.14"
}
}
@mathdoodle
mathdoodle / doodle.json
Last active August 29, 2015 14:22
Surface Warp
{
"uuid": "4dd474cd-ae3e-4e80-9c40-a8050e9f8b7c",
"description": "Surface Warp",
"dependencies": {
"MathBox-bundle": "latest",
"domready": "latest"
}
}
@mathdoodle
mathdoodle / doodle.json
Last active August 29, 2015 14:22
Projective View
{
"uuid": "cbfdcae5-fab1-4562-9461-7f31cb165af1",
"description": "Projective View",
"dependencies": {
"MathBox-bundle": "latest",
"domready": "latest"
}
}
@mathdoodle
mathdoodle / doodle.json
Last active August 29, 2015 14:22
Complex Numbers
{
"uuid": "3f553bfc-9db4-40cc-8fba-bc797dfd530e",
"description": "Complex Numbers",
"dependencies": {
"davinci-mathbox": "1.0.14",
"DomReady": "latest"
}
}
@mathdoodle
mathdoodle / doodle.json
Last active August 29, 2015 14:22
Surface Intersection
{
"uuid": "a9917079-877a-4c11-817d-b1900f054d97",
"description": "Surface Intersection",
"dependencies": {
"domready": "latest",
"MathBox": "latest"
}
}