Color mixing of geometry

Hello,

I find the way KLayout mixes the colors of geometries in different layers marked as transparent or opaque very good and want to understand how this is done in detail.
As I am not very experienced with the KLayout code base, could anyone point me to the right file on github or give me an idea, what type of color mixing is used?

Regards,
Luis

Comments

  • I could not find it in the source code, but by testing a few colors it seems it is just the blend mode "multiply".

  • edited May 23

    google "klayout drawing bitmap".
    It's AI generated summary is not bad and also points you to forum entries where Matthias outlines how the rendering works.
    For trying to understand and navigate a large code base, I would recommend to run valgrind's callgrind and use qcachegrind or kcachegrind to visualize the callgraph.

Sign In or Register to comment.