Skip to content

HugoDijkstra/BrainPaint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

BrainPaint

Brainpaint is a version of brainf*ck for generating images.

Syntax:

  • +: add 1 to the value of the current byte
  • -: subtract 1 from the current byte
  • Right arrow: move to the next byte
  • <: move to the last byte
  • [: start a loop
  • ]: end a loop, if the value the of the current byte is 0 then it goes the the next byte, else it will move the the start of the loop
  • $: take the next 5 bytes and use the to draw a pixel, example bytes:5,5,255,255,255. will draw a white pixel at the 5th row from the top and the side
  • .: print something in the console

HELLO WORLD!


;H $&gt;+&lt;$&gt;+<$>+<$>+<$+>--<$+$+>---<$>+<$>+<$>+<$>+<$>+<$++>----< ;E $&gt;+&lt;$&gt;+<$>+<$>+<$+>----<$+$->++<$+$->++<$+$++>----< ;L $&gt;+&lt;$&gt;+<$>+<$>+<$+$+$+$++>----< ;L $&gt;+&lt;$&gt;+<$>+<$>+<$+$+$+$++>----< ;O $&gt;+&lt;$&gt;+<$>+<$>+<$+$+$+$>-<$>-<$>-<$>-<$-$-$+++++ ;W $&gt;+&lt;$&gt;+<$>+<$>+<+$>-<+$+>+<$+>-<$>-<$>-<$>-<$++ ;o $&gt;+&lt;$&gt;+<$>+<$>+<$+$+$+$>-<$>-<$>-<$>-<$-$-$++++ ;R $&gt;+&lt;$&gt;+<$>+<$>+<$>----<+$+>+<$->+<$+>+<$+>+<$++>----< ;L $&gt;+&lt;$&gt;+<$>+<$>+<$+$+$+$++>----< ;D $&gt;+&lt;$&gt;+<$>+<$>+<$+$+$+>-<$>-<$>-<$>-<-$-$++++ ;! $&gt;+&lt;$&gt;+<$>++<$++++>----<

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages