How to fill only half of the rectangle with any color?

2 comentarios

Adam
Adam el 30 de En. de 2018
Which rectangle?
Matt J
Matt J el 30 de En. de 2018
And which half?

Iniciar sesión para comentar.

 Respuesta aceptada

Harish Ramachandran
Harish Ramachandran el 2 de Feb. de 2018
Something which I would try is to fill the entire rectangle A.
Modify the rectangle A's position properties to be halved (depending on which half). Now create a second rectangle B which is transparent (no fill) to start from the boundary of rectangle A.
Now you'll have two rectangles. However, it gives an illusion that it is a single rectangle in your application / use case.

Más respuestas (0)

Categorías

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by