Contents
Articles
Behaviors
Books
Director News
Director Web Sites
FAQ
Games
Mailing Lists
News Groups
Project Examples
Reviews
Software
Tools
Useful Web Sites
Utilities
Xtras

Don't miss these
Xtra Checker
Toggle DirectToStage Property of a Flash Member
Mac Drive
Go Marker of a Movie in current Directory
keyboard input control
TetonPop Xtra
Wait for DigitalVideo Cuepoint
Save text to a file
AdjustColors
Direct Media Controler Button
 

 

 

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

 


Contact

MMI
36 South Court Sq
Suite 300
Newnan, GA 30263
USA

Send e-mail