Screen Saver Functions

Functions and function-like macros available in the Screen Saver framework.

Overview

Several of the functions produce random values. These make use of the C random number generator, random(), which the Screen Saver framework will automatically seed.

Topics

Random Numbers

SSRandomIntBetween

This function returns a random integer value.

SSRandomFloatBetween

This function returns a random float value.

SSRandomPointForSizeWithinRect

This function returns a random point.

Rectangles

SSCenteredRectInRect

This function returns a rectangle.