# Any way to access stored values of fill() outside of rect(), circle(), etc.?

**URL:** <https://discourse.processing.org/t/any-way-to-access-stored-values-of-fill-outside-of-rect-circle-etc/37631>\
**Category:** Coding Questions\
**Created:** [June 18, 2022, 7:07pm UTC](https://discourse.processing.org/t/any-way-to-access-stored-values-of-fill-outside-of-rect-circle-etc/37631 "2022-06-18T19:07:58Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![glv](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/glv/32/18785_2.png) [@glv](https://discourse.processing.org/u/glv)\
**Post date:** [June 18, 2022, 8:38pm UTC](https://discourse.processing.org/t/any-way-to-access-stored-values-of-fill-outside-of-rect-circle-etc/37631/4 "2022-06-18T20:38:45Z")

</div>

> [@quark](#):
>
> Processing remembers the values used when the user calls the fill(…) method but does not provide methods for the user to retrieve them.

I did an exploration of this here and can retrieve the fill value:

> [@Are properties such as fill color, stroke weight, text size, etc. write only?](https://discourse.processing.org/t/are-properties-such-as-fill-color-stroke-weight-text-size-etc-write-only/33024/4):
>
> Hello, Some insight I have gleaned from topics and [Processing source code](https://github.com/processing): // Attributes Read // v1.0.0 // GLV 2021-10-22 //Defaults println(g.strokeWeight); println(g.textSize); println(hex(g.fillColor)); println(g.stroke); println(g.fill); //Test strokeWeight(1); println(g.strokeWeight); textSize(1); println(g.textSize); fill(0xFF00FF00); println(hex(g.fillColor)); noStroke(); println(g.stroke); noFill(); println(g.fill); slight_smile

I only found this useful for getting the default fill value.

`:)`

---

_[View the full topic](https://discourse.processing.org/t/any-way-to-access-stored-values-of-fill-outside-of-rect-circle-etc/37631)._
