MCPcopy Create free account
hub / github.com/codemistic/Web-Development / show_info

Function show_info

Fidget Spinner/FidgetSpinner.py:96–101  ·  view source on GitHub ↗
(friction, speed)

Source from the content-addressed store, hash-verified

94
95# Displaying Information on Pygame Window
96def show_info(friction, speed):
97 font = pygame.font.SysFont("Times New Roman", 18)
98 frictionText = font.render("Friction : " + str(friction), True, white)
99 speedText = font.render("Rate of Change of Angle : " + str(speed), True, white)
100 display.blit(speedText, (15, 15))
101 display.blit(frictionText, (15, 45))
102
103
104# The Main Function

Callers 1

spinnerFunction · 0.85

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected