ecspresso
    Preparing search index...

    Function createBounds

    • Create a bounds rectangle resource.

      Parameters

      • width: number

        The width of the bounds area

      • height: number

        The height of the bounds area

      • Optionalx: number

        The left edge x coordinate (default: 0)

      • Optionaly: number

        The top edge y coordinate (default: 0)

      Returns BoundsRect

      Bounds rectangle suitable for use as a resource

      ECSpresso.create()
      .withResource('bounds', createBounds(800, 600))
      .build();