# Print blendMode in console, possible?

**URL:** https://discourse.processing.org/t/print-blendmode-in-console-possible/6617
**Category:** Beginners
**Created:** [December 14, 2018, 10:21pm UTC](https://discourse.processing.org/t/print-blendmode-in-console-possible/6617 "2018-12-14T22:21:17Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hi.ke](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@hi.ke](https://discourse.processing.org/u/hi.ke)
#### Post date: [December 14, 2018, 10:21pm UTC](https://discourse.processing.org/t/print-blendmode-in-console-possible/6617/1 "2018-12-14T22:21:17Z")

</div>

Hi,

I was wondering if it is possible to show the current blendMode in the console.  
Unfortunately I couln’t find anything so far.

Thank you 😊

---

<div class="post-metadata">

### Author: ![Kevin](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/kevin/32/2297_2.png) [@Kevin](https://discourse.processing.org/u/Kevin)
#### Post date: [December 14, 2018, 10:55pm UTC](https://discourse.processing.org/t/print-blendmode-in-console-possible/6617/2 "2018-12-14T22:55:36Z")

</div>

No, I don’t think there is a way to do this out of the box.

Note that the parameters you pass into the `blendMode()` function are actually just `int` values defined here:

> <https://github.com/processing/processing/blob/master/core/src/processing/core/PConstants.java>

You could set up your own tracking of the blend mode though, something like this:

```auto
String blendMode = "BLEND";

void setBlendMode(int blendModeValue){

  blendMode(blendModeValue);

  if(blendModeValue == ADD){
    blendMode = "ADD";
  }
  else if ...
}

```

---

<div class="post-metadata">

### Author: ![hi.ke](https://avatars.discourse-cdn.com/v4/letter/h/a9a28c/32.png) [@hi.ke](https://discourse.processing.org/u/hi.ke)
#### Post date: [December 16, 2018, 5:43pm UTC](https://discourse.processing.org/t/print-blendmode-in-console-possible/6617/3 "2018-12-16T17:43:53Z")

</div>

Ahh OK, I didn’t knew that!  
But it makes sense. I got an integer after trying: println(ADD);

So your suggestion of a tracking function will work for me for now, thank you!
