Skip to content

cannot accept floating point to integer functions #55

@iacore

Description

@iacore

true code:

        (pp nearest-vertex)
        (draw-circle-gradient (splice nearest-vertex) 4.0 :lime :red))))
(264.160827636719 400)
error: bad slot #0, expected 32 bit signed integer, got 264.160827636719
  in jaylib/draw-circle-gradient
  in _thunk [main.janet] (tailcall) on line 42, column 9

Reproduction

(draw-circle-gradient [264.160827636719 400] 4.0 :lime :red)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions