first draft with opacity tests : rect instead of bar