diff --git a/examples/code_fragments/entity/gfx_selection.py b/examples/code_fragments/entity/gfx_selection.py
index 7297a7e9dbfcc68717dca09bd41fd550a88c890d..5b3a92d3a3922a2c18b78b9b617f5836d99aac0d 100644
--- a/examples/code_fragments/entity/gfx_selection.py
+++ b/examples/code_fragments/entity/gfx_selection.py
@@ -3,7 +3,7 @@ go=gfx.Entity("test",eh.CreateFullView())
 ev = eh.Select(mol.Query("rnum=2,3,8,13"))
 go.SetSelection(ev)
 go.SetRenderMode(gfx.RenderMode.CUSTOM)
-go.SetColor(gfx.Color(0xffff00),"(ele=C and rnum=1:4)")
+go.SetColor(gfx.YELLOW,"(ele=C and rnum=1:4)")
 scene.Add(go)
 scene.SetCenter(go.GetCenter())