This site requires JavaScript, please enable it in your browser!
Greenfoot back

Comments for Logo

Return to Logo

A new version of this scenario was uploaded on Sat Mar 01 22:19:10 UTC 2014
A new version of this scenario was uploaded on Sat Mar 01 22:21:01 UTC 2014
A new version of this scenario was uploaded on Sat Mar 01 22:40:19 UTC 2014
A new version of this scenario was uploaded on Sat Mar 01 22:59:38 UTC 2014
UpupzealotUpupzealot

2014/3/2

very smooth~
PointifixPointifix

2014/3/2

thanks ;)
Busch2207Busch2207

2014/3/6

It looks great! But it looks different every time. (I mean the gray points) But it's easy to generate the same colors, like you've got on the website within three steps (only if you want ;) ): first declare a variable like: GreenfootImage gi_original; Then start a new Thread, that will load the image in the constructor. (because it sometimes need a bit to load it from the web. And till it is needed, there is enough time): new Thread() { public void run() { try { gi_original=new GreenfootImage("http://www.greenfoot.org/photo_attachments/0000/9746/Greenfoot.jpg?1393532467"); } catch(Exception e) { gi_original=null; } } }.start(); and the last step: In the RandomRectangle()-method, you write under 'colory=...;' and before the 'while (getBackground().getColorAt(colorx-cellsize, colory).equals(randomcolor)...)' the following three lines: if(gi_original!=null) randomcolor=gi_original.getColorAt(randposx[randvar]*18+9,randposy[randvar]*18+9); else Now the gray and black rectangles will always have exactly the same colors, like on your current Greenfoot-website-image ;)
Busch2207Busch2207

2014/3/6

And if there's no internet connection, it will be random colors. ;)
danpostdanpost

2014/3/6

It would be easier just to include the user image in the images folder of the scenario and get the colors off of it.
PointifixPointifix

2014/3/6

thehe nice idea thanks busch, first it was only important for me to get different gray colors at each rectangle so the neighbar rectangle does not have the same color! but maybe ill fix this at my next screnario.
PointifixPointifix

2014/3/6

bmp format would be better then jpg right cause there all colors are true
A new version of this scenario was uploaded on Thu Mar 06 16:14:05 UTC 2014 Now Original Colors are taking, no random ones!
PointifixPointifix

2014/3/6

Thanks to Bush2207, i solved it without internet image, i compared it with my local original bmp logo picture, so its working everywhere everytime! Looks much better then with random one!
Busch2207Busch2207

2014/3/7

No problem. I just thought, it might be better to use the website-image, because an image needs more space and now you always have to copy the image, too. But if that's no problem for you, then this is also a good solution. (All solutions have pros and cons ;)
danpostdanpost

2014/3/7

How about without using an image at all. Do you have an email address, Pointifix?
PointifixPointifix

2014/3/7

sure, simon.pointner@gmx.at but why? what do i need the adress for? what does it help in context with the image
Oh, man... that sound effect for the gray pixels made me shiver.
PointifixPointifix

2014/3/9

thehe i think its cool ;)
AIMrOrangeAIMrOrange

2014/3/24

nice work on this one ;)
PointifixPointifix

2014/3/24

thanks ;)