JSFiddle - React, Tailwind, and code Playground

by soulwire

HTML

<script src="https://rawgithub.com/soulwire/sketch.js/master/js/sketch.js"></script>

JavaScript

var p = { x: 0, y: 0 }

Sketch.create({
    setup: function() {
        this.font = '12px mnospace'
    },
    draw: function() {
        p.x += ( this.mouse.x - p.x ) * 0.15
        p.y += ( this.mouse.y - p.y ) * 0.15
        this.fillText( 'hello', p.x, p.y )
    }
})