# Are properties such as fill color, stroke weight, text size, etc. write only?

**URL:** <https://discourse.processing.org/t/are-properties-such-as-fill-color-stroke-weight-text-size-etc-write-only/33024>\
**Category:** Beginners\
**Created:** [October 23, 2021, 7:57pm UTC](https://discourse.processing.org/t/are-properties-such-as-fill-color-stroke-weight-text-size-etc-write-only/33024 "2021-10-23T19:57:28Z")\
**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:** [October 23, 2021, 10:01pm UTC](https://discourse.processing.org/t/are-properties-such-as-fill-color-stroke-weight-text-size-etc-write-only/33024/4 "2021-10-23T22:01:11Z")

</div>

Hello,

Some insight I have gleaned from topics and _[Processing source code](https://github.com/processing)_:

```auto
// 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);

```

 ![image](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0063b0c0fd4a5545e5688d406148cc2c36910177.png)

`:)`

---

_[View the full topic](https://discourse.processing.org/t/are-properties-such-as-fill-color-stroke-weight-text-size-etc-write-only/33024)._
