Skip to content

How to use drawImage? #13

Closed
Closed
@noughtmare

Description

@noughtmare

Your documentation contains an example:

>>> drawImage window ('constant' \@'Int' 1) ('Cell' 10 10 "test" 'ColorMapSpectrum')

I adapted it to:

main = do
  w <- createWindow 512 512 "Test"
  drawImage w (constant @Int [512,512] 1) (Cell 10 10 "test" ColorMapSpectrum)

That gives the error:

AFException {afExceptionType = TypeError, afExceptionCode = 204, afExceptionMsg = "Function does not support this data type"}

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdocumentationRelated to documentationenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions