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.
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.