codeworld-api-0.8.1: Graphics library for CodeWorld

Safe HaskellNone
LanguageHaskell2010

CodeWorld.Image

Synopsis
  • image :: HasCallStack => Text -> Text -> Double -> Double -> Picture

Documentation

image #

Arguments

:: HasCallStack 
=> Text

Name for the picture, used for debugging

-> Text

Data-scheme URI for the image data

-> Double

Width, in CodeWorld screen units

-> Double

Height, in CodeWorld screen units

-> Picture 

An image from a standard image format. The image can be any universally supported format, including SVG, PNG, JPG, etc. SVG should be preferred, as it behaves better with transformations.