# Colour problem on Geometry

**URL:** <https://community.cesium.com/t/colour-problem-on-geometry/694>\
**Category:** CesiumJS\
**Created:** [August 31, 2013, 1:33pm UTC](https://community.cesium.com/t/colour-problem-on-geometry/694 "2013-08-31T13:33:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![agreenland](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agreenland](https://community.cesium.com/u/agreenland)\
**Post date:** [August 31, 2013, 1:33pm UTC](https://community.cesium.com/t/colour-problem-on-geometry/694/1 "2013-08-31T13:33:36Z")

</div>

Just been playing with the new Geometry and playing with the colours.

In the code below, from the sandcastle example, if I modify the alpha channel then its having no effect. Am I missing something?

Thanks

Alex

---

<div class="post-metadata">

**Author:** ![patrick](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/patrick/32/2045_2.png) [@patrick](https://community.cesium.com/u/patrick)\
**Post date:** [September 1, 2013, 3:06pm UTC](https://community.cesium.com/t/colour-problem-on-geometry/694/2 "2013-09-01T15:06:26Z")

</div>

Hi Alex,

In addition to your change, also tell the appearance it is translucent when constructing it. In the Sandcastle code below change “translucent : false” to “translucent : true”

primitives.add(new Cesium.Primitive({

geometryInstances : [extrudedPolygon, extrudedExtent, extrudedEllipse, cylinderInstance],

appearance : new Cesium.PerInstanceColorAppearance({

translucent : false,

closed : true

})

}));

Regards,

Patrick

---

<div class="post-metadata">

**Author:** ![agreenland](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@agreenland](https://community.cesium.com/u/agreenland)\
**Post date:** [September 2, 2013, 1:45pm UTC](https://community.cesium.com/t/colour-problem-on-geometry/694/3 "2013-09-02T13:45:11Z")

</div>

Brilliant

Thanks Patrick

Alex
