This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
BigSHinyToys's profile picture

ASCII art -- Paint for Computer Craft

Started by BigSHinyToys, 17 April 2012 - 05:47 PM
BigSHinyToys #1
Posted 17 April 2012 - 07:47 PM
ASCII art is a program that allows you to use ASCII characters to create art.This is very usefully for designing how you want a GUI to look as you test the look of it with out coding it. You can also save this file and then use it as a guide in coding.



How to use

I have tried to make this as user friendly as possible as such there is not arguments you need to know just launch the program and use the menu system. after you select New you will be asked or the size you would like. This is measured in characters. the recommended size is the size of the terminal window the system will work with larger files thought (partially experimental.) the screen will now show the editing window. use the up down left right keys to move the cursor. press any character to add it to the picture.pressing Ctrl will open the editor menu. from here you can save open or quit. the mode option switches between mode 1 you have to move cursor around manual and mode two where to moves one forward every key press. To save a file you will need to scroll down to the blank gap at the bottom of the file list and press TAB then type in the name you would like for your file. you could also over write a preexisting file. To exit file selection press Ctrl and select yes.

Pics
Spoiler





Downloads

Current ver 0.36 build 5 stable http://pastebin.com/qDLVXgJ4

ver 0.34 build 3 semi stable [attachment=207:ASCII.zip]

ver 0.31 stable [attachment=173:ASCII.zip]
There are no bugs in 0.31 that i have found but it doesn't have support for sizes larger than the screen

if you find a bug please let me know and it will be fixed.
BigSHinyToys #2
Posted 29 April 2012 - 06:11 AM
I have updates the program and rebuilt the OP

I would like any feed back good bad random it is all good :)/>/>
libraryaddict #3
Posted 29 April 2012 - 06:28 AM
The problem with this is there isn't much times when this could be used.
I cant actually think of a reason to use this. Sorry :

You could use this however to make a animator program though.
With another program to play it back.

An animation like "starwars"

So yes. Bad feedback and constructive feedback!
BigSHinyToys #4
Posted 29 April 2012 - 06:37 AM
The problem with this is there isn't much times when this could be used.
I cant actually think of a reason to use this. Sorry :

You could use this however to make a animator program though.
With another program to play it back.

An animation like "starwars"

So yes. Bad feedback and constructive feedback!

designing GUI's making logos or pictures for program's there are many thinks I use this for on a regular basis. ever had a idear for a program started working on it and had to rewrite all the GUI's because you forgot something or didn't like the look of found a better way well in a couple or minutes without typing a line of code you could have straitened it all out.

I have been working on a animation ver of this but there are huge processor over heads that need to be worked around before that will event be possible. for example how does a program decide if it is a movie or not. as you cant use string.sub() on huge strings like alongtimeago but i when i find a work around fot that and refactor this to cope with three dimensional arrays then i will be all set for a animator ver.
libraryaddict #5
Posted 29 April 2012 - 06:58 AM
First line: –This is a animation. Made to run with the animator
Second line is info for the program. Frames per second = 1. Linesperframes = 20
Then the lines is the animation.

for line in File:lines() do
if maxLinesPerFrames > CurrentLine then
print(line)
CurrentLine = CurrentLine+1
else
sleep(FramesPerSecond)
CurrentLine = 1
end

This would work.
I used it before.
You could also add info to each line before it displays the auctal animation
Cranium #6
Posted 15 August 2012 - 03:29 PM
I like this! Does this output code, or just the ASCII?
BigSHinyToys #7
Posted 15 August 2012 - 05:10 PM
just ASCII
What did you have in mind for output ?
something like

local tImage = {[[blabla]],
[[blabla]],
[[blabla]],
[[blabla]]}
Because It would be a simple inclusion If you want it is all.
Cranium #8
Posted 15 August 2012 - 05:27 PM
Nah, I'm just really lazy, and wanted something to do tedious print commands and table functions for me… :(/>/>
BigSHinyToys #9
Posted 15 August 2012 - 06:14 PM
New ver 0.35 Build 4

Added EXPO function to export it as a table
Cranium #10
Posted 15 August 2012 - 06:23 PM
Awesome. A bit easier for my little toy programs then…
rhyleymaster #11
Posted 03 September 2012 - 12:24 AM
Current ver 0.35 build 4 sable http://pastebin.com/Wp8aw1PV

You spell't "stable" wrong.
BigSHinyToys #12
Posted 03 September 2012 - 06:41 AM
BUILD 5
*fixed crash bug when saving to root after having too many files.
* corrected spelling in OP
Exerro #13
Posted 04 September 2012 - 03:23 PM
i also made a paint program recently and im working on an animator…for the animator you should make it more of a slide show that refreshes very quickly i.e. you have lots of saves in a movie folder and the animator runs through them and prints each one out every 0.2 secs for example
NOTUSEDPLEASEDELETE #14
Posted 30 August 2013 - 07:01 PM
Seems cool. I also wanted to tell you that 1000 posts = custom title.
Mitchfizz05 #15
Posted 31 August 2013 - 01:33 AM
Seems cool. I also wanted to tell you that 1000 posts = custom title.
I think you might of accidentally necroed this post. :)/>