Skip to content

Instantly share code, notes, and snippets.

Avatar

Azgaar

View GitHub Profile
@Azgaar
Azgaar / vue-canvas.js
Created Apr 16, 2018 — forked from redblobgames/vue-canvas.js
Vue component for canvas with automatic dependency tracking
View vue-canvas.js
/** 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"
View svg-arrowhead.html
<!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 Nov 19, 2017
Real-world English town names used as a training material for Markov chain
View manors.txt
// 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 Oct 25, 2019
Voronoi Tessellation with Poisson Disc sampling
View .block
license: gpl-3.0
height: 620
border: no
@Azgaar
Azgaar / .block
Last active Oct 25, 2019
Voronoi Sampling methods comparison
View .block
license: gpl-3.0
height: 510
border: no
@Azgaar
Azgaar / .block
Last active Oct 25, 2019
Fantasy Map Generator
View .block
license: gpl-3.0
height: 570
border: no