Skip to content

Instantly share code, notes, and snippets.

@Azgaar
Azgaar / vue-canvas.js
Created April 16, 2018 18:33 — forked from redblobgames/vue-canvas.js
Vue component for canvas with automatic dependency tracking
/** Canvas component
A generic canvas component that calls a draw function to draw the
contents, and automatically calls it again when anything the draw
function depends on changes. Blog entry:
http://simblob.blogspot.com/2018/03/using-vue-with-canvas.html
Example:
<a-canvas width="500" height="200"
@Azgaar
Azgaar / svg-arrowhead.html
Created April 16, 2018 18:33 — forked from redblobgames/svg-arrowhead.html
SVG arrowhead example
<!DOCTYPE html>
<html>
<svg width="80%" height="80%" viewBox="-100 -100 200 200">
<!-- Need this definition to make an arrowhead, from https://www.w3.org/TR/svg-markers/ -->
<defs>
<marker id="red-arrowhead" viewBox="0 0 10 10" refX="7" refY="5" markerUnits="strokeWidth" markerWidth="4" markerHeight="3" orient="auto">
<path d="M 0 0 L 10 5 L 0 10 z" stroke="none" fill="red"/>
</marker>
</defs>
@Azgaar
Azgaar / manors.txt
Created November 19, 2017 14:55
Real-world English town names used as a training material for Markov chain
// Full version
var manorNames = ["Abbots","Abingdon","Acton","Albrighton","Alcester","Alconbury","Aldermaston","Almondbury","Alnmouth","Alnwick","Alphington","Alresford","Alrewas","Alton","Altrincham","Amersham","Amesbury","Andover","Appleby","Arundel","Ashboume","Ashburton","Ashwell","Atherstone","Aveton","Axbridge","Axminster","Aylesbury","Badgworth","Bakewell","Baldock","Bamburgh","Bampton","Banbury","Barnard","Barnstaple","Barton","Baschurch","Basingstoke","Bath","Battle","Bawtry","Beccles","Bedford","Bedwyn","Berden","Bere","Berkeley","Berkhamsted","Berwick","Betley","Beverley","Bewdley","Bideford","Biggleswade","Bingley","Birmingham","Bishop","Bishops","Blandford","Blechingley","Bodmin","Bolton","Bootham","Boroughbridge","Boscastle","Bossinney","Boston","Bovey","Bow","Brackley","Bradford","Brading","Bradninch","Bramber","Brampton","Brasted","Bray","Bretford","Brewood","Bridgnorth","Bridgetown","Bridgwater","Bridlington","Bridport","Brill","Brinklow","Bristol","Broadway","Bromyard","Brough","Bruton","Bu
@Azgaar
Azgaar / .block
Last active October 25, 2019 09:32
Voronoi Tessellation with Poisson Disc sampling
license: gpl-3.0
height: 620
border: no
@Azgaar
Azgaar / .block
Last active October 25, 2019 09:33
Voronoi Sampling methods comparison
license: gpl-3.0
height: 510
border: no
@Azgaar
Azgaar / .block
Last active June 7, 2024 07:42
Fantasy Map Generator
license: gpl-3.0
height: 570
border: no