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

2 vues (au cours des 30 derniers jours)
How to fill only half of the rectangle with any color?
  2 commentaires
Adam
Adam le 30 Jan 2018
Which rectangle?
Matt J
Matt J le 30 Jan 2018
And which half?

Connectez-vous pour commenter.

Réponse acceptée

Harish Ramachandran
Harish Ramachandran le 2 Fév 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.

Plus de réponses (0)

Catégories

En savoir plus sur Color and Styling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by