Lenas Spielfigur
spielfigur_alien.py — Python Source, 1 KB (1086 bytes)
Dateiinhalt
from visual import * class alien(frame): def __init__(self, mat=materials.silver, col=color.hsv_to_rgb((0.84,0.65,0.65))): frame.__init__(self) head=ellipsoid(frame=self, pos=(0,0,0), length=0.9, height=0.5, width=0.4, material=mat,color=col) body=cylinder(frame=self, pos=(0,0,0), axis=(0,-0.5,0), radius=0.175, material=mat, color=col) beinl=box(frame=self, pos=(-0.1,-0.5,0),length=0.05, width=0.05, height=0.3, material=mat, color=col) beinr=box(frame=self, pos=(0.1,-0.5,0),length=0.05, width=0.05, height=0.3, material=mat, color=col) antenl=helix(frame=self, pos=(-0.18,0.1,0), axis=(-0.1,0.3,0), radius=0.02, thickness=0.01/2, material=materials.chrome) antenr=helix(frame=self, pos=(0.18,0.1,0), axis=(0.1,0.3,0), radius=0.02, thickness=0.01/2, material=materials.chrome) eye=sphere(frame=self, pos=(0,0,0.15), radius=0.1, color=color.hsv_to_rgb((0.2,0.5,1)),material=materials.chrome) eyering=sphere(frame=self, pos=(0,0,0.123), radius=0.12,color=color.black, material=materials.shiny) g=alien()