Using Python - Square Instruction: Create the following function and call it to the main function. squares(center, length_sides, rotation, shade) It draws a square with: the given center (two-integer...



Using Python - Square



Instruction: Create the following function and call it to the main function.


squares(center, length_sides, rotation, shade)



  • It draws a square with:



  1. the givencenter (two-integer tuple)


  2. length_sides (side length - float)


  3. angle of rotation (float, degrees), and;


  4. shade(color - three-integer tuple)



Notes:



  • You may use the ImageDraw and Image from the Pillow Library.

  • You are
    not
    allowed to use the Turtle Library - as well as
    rotation()

    andpolygon().




Example of the Function being called:


shape = squares((300, 300), 300, 0, "black")
shape.show()




Extracted text:

Jun 11, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here