MATLAB: How to make different 2d shapes to be used in the game

2d shapesgames

I want to make different shapes to be used in my game. Please can anyone help me in this manner?
Related Question