screenwrap

<script src="./point_src/screenwrap"></script>

A ScreenWrap manipulated the XY of a point, if it travels outside the wrap space.

let topLeft = [50, 50]
    , bottomRight = [800, 800]

s = new ScreenWrap(topLeft, bottomRight)

Check and alter point positions as they move in the draw routine:

s.perform(point)

This is setup be default on the stage, saving the setup part and screen resize tracking:

stage.screenWrap.perform(point)
Meta Data
filepath_exists True
path screenwrap
filepath screenwrap.js
clean_files ()

Method List

comment.html|safe
comment.html|safe
  • method_kind

    method_name

    (
    param_name = param.default_value ,
    )
    from class_name
    comment.html|safe
    comment.html|safe