Programming C, C++, Java, PHP, Ruby, Turing, VB
Computer Science Canada 
Programming C, C++, Java, PHP, Ruby, Turing, VB  

Username:   Password: 
 RegisterRegister   
 [Graphics] Scratch
Index -> Programming, Turing -> Turing Submissions
View previous topic Printable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic
Author Message
Delos




PostPosted: Sat Jan 15, 2005 8:52 pm   Post subject: [Graphics] Scratch

I got a bit inspired today...and made this. It's not all that amazing, but meh. It's been a while since I last coded anything...

Anyhow, it runs off my Lens Filter engine, which some of you may remember from a bit back...and adds a little...scratch to it Razz.

Enjoy...

BTW, keep in mind that
1) the input part is very much crashable...whipped up in the last five minutes, so don't expect it to be nice
2) resultant images are in 256-colour format - thank OOT for that...



Scratch.zip
 Description:
PM if you need alternate formats (.rar, .ace etc).

Download
 Filename:  Scratch.zip
 Filesize:  274.07 KB
 Downloaded:  161 Time(s)

Sponsor
Sponsor
Sponsor
sponsor
sport




PostPosted: Sat Jan 15, 2005 10:56 pm   Post subject: (No subject)

What is the default directory?
zomg




PostPosted: Sat Jan 15, 2005 11:02 pm   Post subject: (No subject)

sport wrote:
What is the default directory?

it works cool but i have to keep pushing close and then click no
thats the only way it works for me anyway that pretty kewl for turing

*default directory is the directory that the exe file is in
sport




PostPosted: Sat Jan 15, 2005 11:08 pm   Post subject: (No subject)

I got it it's the one where the file is located. But I get an error


New Bitmap Image.bmp
 Description:
Error message
 Filesize:  800.02 KB
 Viewed:  1894 Time(s)

New Bitmap Image.bmp


Delos




PostPosted: Sun Jan 16, 2005 10:03 am   Post subject: (No subject)

Hmm...I'm guessing your trying to load a pic that's not stored in the same folder as the .exe sport (as shadow master said). You could always be interesting and type the full path Wink.

As for shadow master, could you elaborate a bit on what you said there...I'm not fully understanding what or why you're doing what you're doing to get it to work...
Viper




PostPosted: Mon Jan 17, 2005 12:19 pm   Post subject: (No subject)

i dont get wut this is Embarassed
Delos




PostPosted: Mon Jan 17, 2005 1:00 pm   Post subject: (No subject)

Hehe...

Ok, it takes a picture. By analyzing the colours, it redraws it as a greyscale series of dots. The probability of a dot being drawn increases with the darkness of the colour of that spot in the original image. The probable colour of the dot (in terms of grey) changes depending on the original colour once again.
Increasing the density allows for a more recognizable picture to be drawn.
I've found that once you get beyond around 20 or so in the denisty, the pic doesn't change at all, so I've restricted it to 15.
Display posts from previous:   
   Index -> Programming, Turing -> Turing Submissions
View previous topic Tell A FriendPrintable versionDownload TopicRate TopicSubscribe to this topicPrivate MessagesRefresh page View next topic

Page 1 of 1  [ 7 Posts ]
Jump to:   


Style:  
Search: