capfredf
2021-5-1 17:34:32

Is there a high resolution video of https://www.youtube.com/watch?v=MYtm9YG4tMM by any chance?


soegaard2
2021-5-1 18:23:49

I am looking at the composite operators for Cairo. Is there an existing interface of using them in Racket?

https://cairographics.org/operators/


soegaard2
2021-5-1 18:25:03

soegaard2
2021-5-1 18:26:24

I see CAIRO_OPERATOR_XOR, CAIRO_OPERATOR_ADD and CAIRO_OPERATOR_SATURATE in draw/unsafe/cairo.rkt but some are missing.

https://github.com/racket/draw/blob/a6558bdc18438e784c23d452ffd877dac867a7fd/draw-lib/racket/draw/unsafe/cairo.rkt#L415


soegaard2
2021-5-1 18:32:23

Hmm. They are not missing after all, the C header file has the same number of operators.

typedef enum _cairo_operator { CAIRO_OPERATOR_CLEAR,

`CAIRO_OPERATOR_SOURCE,`
`CAIRO_OPERATOR_OVER,`
`CAIRO_OPERATOR_IN,`
`CAIRO_OPERATOR_OUT,`
`CAIRO_OPERATOR_ATOP,`

`CAIRO_OPERATOR_DEST,`
`CAIRO_OPERATOR_DEST_OVER,`
`CAIRO_OPERATOR_DEST_IN,`
`CAIRO_OPERATOR_DEST_OUT,`
`CAIRO_OPERATOR_DEST_ATOP,`

`CAIRO_OPERATOR_XOR,`
`CAIRO_OPERATOR_ADD,`
`CAIRO_OPERATOR_SATURATE`

} cairo_operator_t;


soegaard2
2021-5-1 18:47:22

I see that draw-bitmap from dc% has a mask, but I have trouble mapping the description to low-level operators.


sschwarzer
2021-5-1 20:05:12

So far there are only three of us in the group meeting. :wink:


samdphillips
2021-5-1 20:12:06

Sorry something came up today and I can’t make it :disappointed:


samth
2021-5-2 01:29:25

The missing ones seem to say “since 1.10”