User Tools

Site Tools


shake_screen

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
shake_screen [2025/02/17 16:07] justinshake_screen [2025/02/21 15:32] (current) justin
Line 5: Line 5:
 ====Signature:==== ====Signature:====
 <code python> <code python>
-shake_screen(duration)+shake_screen(duration, strength, factor_x, factor_y, magnitude_x, magnitude_y)
 </code> </code>
  
 ^Argument^Description^Type^Required^ ^Argument^Description^Type^Required^
 |duration|Duration of time to shake the screen (in seconds).|[[Number]]|Yes| |duration|Duration of time to shake the screen (in seconds).|[[Number]]|Yes|
 +|strength|Value from 0 to 100. Defaults to 5.|[[Number]]|No|
 +|factor_x|Value from 0 to 100. Defaults to 50.|[[Number]]|No|
 +|factor_y|Value from 0 to 100. Defaults to 25.|[[Number]]|No|
 +|magnitude_x|Value from 0 to 100. Defaults to 80.|[[Number]]|No|
 +|magnitude_y|Value from 0 to 100. Defaults to 80.|[[Number]]|No|
  
 ====Example:==== ====Example:====
 <code bauxite> <code bauxite>
 +shake_screen(2);
 </code> </code>
-//Results://+//Results:// Shakes the screen for two seconds using the default values.
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
shake_screen.1739837230.txt.gz · Last modified: 2025/02/17 16:07 by justin