Menu

[Solved]William T Verts Lab 3 Greebles Anime Eyes Drbillsinputoutput Import Drbillssvgwriter Impor Q37121677

In python please

# William T. Verts - Lab #3 - Greebles Anime Eyes from DrBillsInputOutput import* from DrBillsSVGwriter import * import math

# This functi n computes the optimal X radius for the Greeble # based on the size of the graphic, then plots the Greeble at #

# William T. Verts – Lab #3 – Greebles Anime Eyes from DrBillsInputOutput import* from DrBillsSVGwriter import * import math # This function paints a bunch of lines radially around 〈Xc,Yc〉 # where R1 and R2 are the inner and outer radii and Segments # indicates the number of lines (Xc,Ус,R1,R2, segments): def addStarburst return # This function paints ONE anime eyeball, centered at Xc, # The color of the iris is NewColor, the pupil is black, and # the highlights are white. The sizes and positions of the # Iris, pupil, and highlights are derived from center point # <xc ,Yc and the radius f the iris R def addEyeball (Xc,Ус, R, NewColor): return # This functi n paints a Greeble at center 〈Xc,Yc〉 with Xradius # indicating the size of the Greeble (everything else is # computed fr m th se three values) . The Greeble has ellipses # for the body and mouth, and calls addEyeba11 TWICE (once for # each eye) . def addGreeble (Xc, Xc, xradius, NewColor): return # This functi n computes the optimal X radius for the Greeble # based on the size of the graphic, then plots the Greeble at # the center of the graphic with that X radius. def Stare (NewColor,W, H): return # Prompt the user for a color. Y u MAY NOT change ANY code # in the reguestcolor function! def requestColor (Message): Colors-[“red”, “green”, “blue”, “cyan”, “magenta”, “yellow” ] whileTrue: s-requestString (Message) S- S.lower () if (S in Colors): return S # This functi n establishes the size of the canvas and the # color of the eyes. You MAY NOT change ANY code in # the Main function except to replace my name with yours! def Main): Filename = pickAFolder(” Enter F lder f r SVG file” )+” / Greeble .svg ” Width -requestIntegerInRange (“Enter Width”,10,1000) Height-requestIntegerInRange (“Enter Height”,10,1000) Color-requestColor (“Enter Iris Color”) SVGheader (Filename, Width, Height) SVGrectangle (0,0,Width, Height, “black”, “white”) SVGtext (10, 35, “William T. Verts”, 36, “black”, “Arial”, True) Stare (Color,Width, Height) SVGfooter () return Show transcribed image text # William T. Verts – Lab #3 – Greebles Anime Eyes from DrBillsInputOutput import* from DrBillsSVGwriter import * import math # This function paints a bunch of lines radially around 〈Xc,Yc〉 # where R1 and R2 are the inner and outer radii and Segments # indicates the number of lines (Xc,Ус,R1,R2, segments): def addStarburst return # This function paints ONE anime eyeball, centered at Xc, # The color of the iris is NewColor, the pupil is black, and # the highlights are white. The sizes and positions of the # Iris, pupil, and highlights are derived from center point #

Expert Answer


Answer to # William T. Verts – Lab #3 – Greebles Anime Eyes from DrBillsInputOutput import* from DrBillsSVGwriter import * import … . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *