- Notifications
You must be signed in to change notification settings - Fork0
Vaporjawn/Dsxyliea
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
After seeing the webpage titled "dyslexia" (http://geon.github.io/programming/2016/03/03/dsxyliea), by Victor Widell from 2012 I thought it was the coolest concept. Then I thought "why doesn't this exist for browsers. It'll mix things up and make the webpages look cool."
Jumble text to simulate reading with Dsxyliea
varDsxyliea=require('Dsxyliea');console.log(Dsxyliea("Sometimes I see things right to left and I know that's not right at all"));//=> Sitemomes I see thnigs right to lfet and I know that\'s not right at allconsole.log(Dsxyliea.scrambleWord("Wednesday"));//=> Wedsendayconsole.log(Dsxyliea("I'm not saying I invented the turtleneck, but I was the first person to realise its potential as a tactical garment.",{minWordLength:2,scrambleChance:80}));//=> I\'m not saying I invented the tureneltck, but I was the first perosn to realise its potential as a tactical ganemrt.
$ npm install Dsxyliea
Returns a dyslexified sentence
Type:string
Type:int
Default:3
Minimum length a word has to be in order for it to be scrambled.
Type:int
Default:100
Percentage chance out of100
of a word being scrambled.100
= will always be scrambled.0
= never scrambled.
Returns a dyslexified word
Type:string
Type:int
Default:3
Minimum length a word has to be in order for it to be scrambled.
Type:int
Default:90
Percentage chance of a word being scrambled.100
= will always be scrambled.
About
constantly shifting text on your browser
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Releases
Packages0
Uh oh!
There was an error while loading.Please reload this page.