Closed DianaTavares closed 1 month ago
@samreid and I would like to start sometime around https://github.com/phetsims/density-buoyancy-common/blob/c7f6f0c3ce4ccfbf22c73be5f91cf403bed654e3/js/common/view/MassView.ts#L62-L68.
Man. I got pretty thwarted today. I couldn't get anything to draw onto a cuboid. I was able to add a child to the mass tag label, but not to create another one. I'm going to get another pass on Monday.
maybe instead it will be best and easiest to handle it in a scenery layer like for force vectors, mass labels, and the scale force readout. See ScaleReadoutNode for example.
@samreid and I, after discussion. Want to proceed with the "scenery layers" strategy instead of the texture-related rendering into three. MassTagView may also be a good candidate for converting over to this layer's based strategy (could be simpler and faster).
First pass
Design questions:
depthLinesLightProperty
and depthLinesDarkProperty
. Do you like 5 segments, or 4?
5 segments, 4 lines
What color should the depth lines be for a custom material? It can go from quite light to very dark. I'm unsure if it should change or not.
Good question! Can the lines change color in the inverse gradient color used in the block? In that way, it is always going to be visible.
Please let me know what exact colors you want. I made entries for the color editor called depthLinesLightProperty and depthLinesDarkProperty.
I was thinking just in white and black, but I can use this property to play around. I can do that the Thursday.
Alright. I believe that all is done on my side. The only open questions are for Diana to review the specific colors for light/dark, and so see how I'm updating the custom color to either light or dark depending. Let me know if you want to discuss.
It is amazing! thanks!!
A new checkbox for Buoyancy and Buoynacy: Basics. The checkbox will be in the forces panel, below "Forces", like the next mockup:
For Buoynacy: Basics and Intro screen in Buoynacy
For the rest of the screens that have vector scale:
In Buoynacy, the screens Shapes and Applications DON'T INCLUDE THIS CONTROL.
Once the user selects this checkbox, 4 horizontal lines (white or black, depending on the color of the block) will appear in the blocks in the play area, dividing the block into 5 equal divisions.