Question: How do you solve this? How do you solve this? Whe the function tsyelion that acoepts red, green, and blue vaties as is parameters and
Whe the function tsyelion that acoepts red, green, and blue vaties as is parameters and returns Troe if both the green and red valiues are at lesst 40 more than the blue value it the blue value is close to, or above, einer the green or red, it shoud retum false : Once you wite the funcion, it wit be used to turn the goal keeper's jersey from yelow to aqua by swapping the red and blue values. based on the r. R. b values passed in. fros inage inport : arite isvelios herelit * Maln part of progran ling - iaage ("goalkeepor. 1p ) a Loos haoush atL ptxecs for x In ranke(ing. getiadeh 0) : for y in range (Ind-getife ( eht 6) ) * cet colbriar cocoin vatush - Ing met(x)(x,y) =pgetpid() i=0getcosen() White the function isYellow that accepts red, green, and blue values as its pararnesers aryd reburns: frue it both the green ard hed values are at least 40 more than the blue value. If the blue value is clese to, or above, acther the green er red, it should return Fatien Once you write the function, it wil be used to turn the gaal keeper's precy form yelow to aqua by swapping the rod and blue viubet. Hint seat by witing a funetion that retuens True akay.. That will let you run the program but wil change evory pixel. Then add a condtion to asy. True ar False basod ca the e,, b b values pasesd in. tron linage inport. - Weita infedlou heretit Min patt of progeas 4 chmart an tmact rach A ride img - frager "gotikeeper. jpq" for x in zangeing getwidta (3) ) for y in fange (ing get gelght f) : 4 att cimsref cocol viturs p=inqgetpixel(x,y) r= Dogetined (1 q=p+getarent] b = p.getatun (i) y th if inition
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
