# Shapes 3D Library: can't get stroke function to work for any shapes

**URL:** <https://discourse.processing.org/t/shapes-3d-library-cant-get-stroke-function-to-work-for-any-shapes/531>\
**Category:** Libraries\
**Tags:** homework\
**Created:** [May 30, 2018, 10:40am UTC](https://discourse.processing.org/t/shapes-3d-library-cant-get-stroke-function-to-work-for-any-shapes/531 "2018-05-30T10:40:18Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![quark](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/quark/32/26_2.png) [@quark](https://discourse.processing.org/u/quark)\
**Post date:** [June 1, 2018, 11:08am UTC](https://discourse.processing.org/t/shapes-3d-library-cant-get-stroke-function-to-work-for-any-shapes/531/5 "2018-06-01T11:08:58Z")

</div>

`color c = text.fill();`

This will work with all shapes **_except_** Box because a box can have 6 different colour (one for each face) so it wouldn’t know which one to return.

---

_[View the full topic](https://discourse.processing.org/t/shapes-3d-library-cant-get-stroke-function-to-work-for-any-shapes/531)._
