# Shapes 3D Library: How can i get the color of a shape?

**URL:** https://discourse.processing.org/t/shapes-3d-library-how-can-i-get-the-color-of-a-shape/590
**Category:** Libraries
**Created:** [June 1, 2018, 5:56am UTC](https://discourse.processing.org/t/shapes-3d-library-how-can-i-get-the-color-of-a-shape/590 "2018-06-01T05:56:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![\_ther](https://avatars.discourse-cdn.com/v4/letter/_/898d66/32.png) [@\_ther](https://discourse.processing.org/u/_ther)
#### Post date: [June 1, 2018, 5:56am UTC](https://discourse.processing.org/t/shapes-3d-library-how-can-i-get-the-color-of-a-shape/590/1 "2018-06-01T05:56:35Z")

</div>

```auto
Box test = new Box(this, 300);
test.stroke(255);
test.drawMode(Shape3D.SOLID);
test.draw();

// this is where I'm stuck
color c = test.getColor();

```

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [June 4, 2018, 12:26am UTC](https://discourse.processing.org/t/shapes-3d-library-how-can-i-get-the-color-of-a-shape/590/2 "2018-06-04T00:26:03Z")

</div>

2 posts were merged into an existing topic: [Shapes 3D Library: can’t get stroke function to work for any shapes](https://discourse.processing.org/t/shapes-3d-library-cant-get-stroke-function-to-work-for-any-shapes/531)

---

<div class="post-metadata">

### Author: ![jeremydouglass](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jeremydouglass/32/20_2.png) [@jeremydouglass](https://discourse.processing.org/u/jeremydouglass)
#### Post date: [June 4, 2018, 12:26am UTC](https://discourse.processing.org/t/shapes-3d-library-how-can-i-get-the-color-of-a-shape/590/3 "2018-06-04T00:26:03Z")

</div>


