treeform / pixie

Full-featured 2d graphics library for Nim.
MIT License
732 stars 28 forks source link

When importing library get error #507

Closed MrEnder0 closed 1 year ago

MrEnder0 commented 1 year ago
C:\Users\Ender\Downloads\pixie-master\src\pixie\blends.nim(182, 17) Error: type mismatch: got <Color, Color>
but expected one of:
proc blendSoftLight(backdrop, source: ColorRGBX): ColorRGBX
  first type mismatch at position: 1
  required type for backdrop: ColorRGBX
  but expression 'color(backdrop)' is of type: Color

This is on Nim Compiler Version 1.6.6 [Windows: amd64]

treeform commented 1 year ago

Make sure you have the most recent version of Chroma and Pixie. Some times nimble is not able to resolve this and it needs to be done manually. You can try nimble uninstall both chroma and pixie and install them again.

On Fri, Sep 23, 2022, at 7:06 PM, Mr.Ender wrote:

C:\Users\Ender\Downloads\pixie-master\src\pixie\blends.nim(182, 17) Error: type mismatch: got <Color, Color> but expected one of: proc blendSoftLight(backdrop, source: ColorRGBX): ColorRGBX first type mismatch at position: 1 required type for backdrop: ColorRGBX but expression 'color(backdrop)' is of type: Color

— Reply to this email directly, view it on GitHub https://github.com/treeform/pixie/issues/507, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAA6X7BPXCZLG3A27PDROPLV7ZO25ANCNFSM6AAAAAAQUOBOP4. You are receiving this because you are subscribed to this thread.Message ID: @.***>

MrEnder0 commented 1 year ago

Yes it seems that the library is fully working after running nimble install chroma. Thanks!