Class TeaRenderer

    • Constructor Detail

      • TeaRenderer

        public TeaRenderer​(Canvas canvas)
    • Method Detail

      • requireMediaLoadingComplete

        public void requireMediaLoadingComplete()
        Requires all media to be fully loaded before the renderer starts the animation loop. The browser loads media files asynchronously, so by default the animation loop is already active at a time when not all media files have been fully loaded yet.
      • getPlatform

        public nl.colorize.util.Platform.PlatformFamily getPlatform()
        Returns the display name of the current platform. This method is similar to Platform.getPlatformName(), but detects the platform based on the browser's User-Agent header rather than from the system properties.
      • takeScreenshot

        public java.lang.String takeScreenshot()
        Description copied from interface: Renderer
        Takes a screenshots of the renderer's current graphics, and saves it to an image. The image is returned as a data URL for a PNG image.
        Specified by:
        takeScreenshot in interface Renderer