Search content:

 

Personal Menu
Username:
Password:
Save password

Become a member

Forgot Password?

 

Don't miss these
Index Xtra
Composite Xtra
Digital Clock Puzzle
Macromedia Director Game Development: From Concept to Creation
Vector Shape - Create Ellipse
Color Fader-Alphamania
Toggle Static Property of a Flash Member
Spaceship Move by keypress
Video Ghosting
myFile
MediaMacros Xtras Mall
 

 

 

Behavior Imaging Lingo - Hyporoid Illusion

Added on 10/1/2005

 

Compatibilities:
behavior D8_5 D9 Mac PC Script Shockwave

This item has not yet been rated

Author: psykopath (website)

Playing around with lingo and accidentally made this optical illusion. It looks like a star(ish)-shaped cylinder, but you can't figure out which end is the top and which is the bottom. The source has all the needed members in it. The source has been compiled in MX2004, I'm not sure what versions it will open in.

Download PC Source
property t,a,b,c
on beginsprite me
  
  a = 45
  b = 7
  c = 5
  t=0  
  
end


on exitframe me
  
  t=t+0.1
  if t>360 then t=t-360
  
  
  xx = (a - b) *cos(t) + c *cos((a/b -1)*t)
  yy = (a - b) *sin(t) - c * sin((a/b -1)*t)
  
  
  
  member(3).image.setPixel(xx+100, 50+yy, rgb(0, 0, 250))
  member(3).image.setPixel(xx+100-(26*2), 50+yy+(26*2), rgb(0, 0, 250))
  
  repeat with i = 1 to 25
    member(3).image.setPixel(xx+100-(i*2), 50+yy+(i*2), rgb(250,0,0))
  end repeat
  
  member(3).image.copypixels(member(4).image,member(3).rect,member(3).rect,[#blendlevel:4])
  
  
end

 


Upload Provided by ABCUpload ASP

Contact

MMI
22 West Court Sq
Suite 2C
Newnan, GA 30263
USA

Fax - (206) 339-5833

Send e-mail