Git Product home page Git Product logo

texty-fun-time's Introduction

Texty Fun Time ๐Ÿ˜™

Do you like words? No, scratch that. Not words, letters. Do you like letters, (characters, graphemes, motherfucking sigils, et goddamn cetera) but wish they weren't so unfairly constrained into words? Those oppressive prison cells of grammar, that's what I think of words. Who needs em! Not me. Haven't used one in years, and good riddence!

So why bother making word art. Boring 1997 Microsoft Word plugin word art. Dumb "256-color, curved across the arc of a circle, then shat upon by a dithered drop shadow" word art. When you could make a text mosaic.

(Obv I spent most of my youth playing with MS Word word art, because hot dang that was the coolest.)

HOW DOES?

var Canvas = require('canvas'); // if running in Node
var MAGNIFICENT_ARTWORKS = require('texty-fun-time');

var canvas = new Canvas(512, 512);
MAGNIFICENT_ARTWORKS.draw(canvas, {
  text: "ooh mickey you're so pretty can't you understand",
  color: 'rgb(253, 120, 168)',
  density: 2,
  startCentered: false,
  sizing: "random",
});

My karaoke playlist was on when I wrote this

TextFunTime places letters where there is the least opacity on the canvas, so passing a canvas that already contains opaque (or partially opaque) pixels can create unexpected results.

color can be any color string, gradient, or pattern that works with the canvas context's fillStyle property.

sizing can be one of "random", "linear", and "logarithmic", which determines how subsequent letters are scaled down in size.

density is dangerous: it increases the number of painted letters exponentially, i.e. ooh mickey you're so pretty can't you understand is 48 characters, so this image has 2,304 chars on it.

Terms of Use

This software is offered under the BITE-ME license, wherein you can do whatever the fuck you want with it, but if you @ me I will drive to your home and say mean words to you as I flick you in the eye.

texty-fun-time's People

Contributors

toomanybees avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.