Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
samreid committed Jan 18, 2020
1 parent e838790 commit 58b09ed
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions js/common/view/LevelSupportColumnNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ define( require => {

// Create and add the main body of the column.
const transformedColumnShape = modelViewTransform.modelToViewShape( levelSupportColumn.shape );
const mainBodyGradient = new LinearGradient( transformedColumnShape.bounds.minX, 0, transformedColumnShape.bounds.maxX, 0 ).
addColorStop( 0, 'rgb( 150, 150, 150 )' ).
addColorStop( 0.25, 'rgb( 230, 230, 230 )' ).
addColorStop( 0.65, 'rgb( 150, 150, 150 )' ).
addColorStop( 1, 'rgb( 200, 200, 200 )' );
const mainBodyGradient = new LinearGradient( transformedColumnShape.bounds.minX, 0, transformedColumnShape.bounds.maxX, 0 ).addColorStop( 0, 'rgb( 150, 150, 150 )' ).addColorStop( 0.25, 'rgb( 230, 230, 230 )' ).addColorStop( 0.65, 'rgb( 150, 150, 150 )' ).addColorStop( 1, 'rgb( 200, 200, 200 )' );

const columnNode = new Path( transformedColumnShape,
{
Expand All @@ -46,11 +42,7 @@ define( require => {
// Create and add the column support.
const supportWidth = transformedColumnShape.bounds.width * 1.3; // Empirically determined.
const supportHeight = transformedColumnShape.bounds.height * 0.15; // Empirically determined.
const supportGradient = new LinearGradient( transformedColumnShape.bounds.centerX - supportWidth / 2, 0, transformedColumnShape.bounds.centerX + supportWidth / 2, 0 ).
addColorStop( 0, 'rgb( 150, 150, 150 )' ).
addColorStop( 0.25, 'rgb( 210, 210, 210 )' ).
addColorStop( 0.65, 'rgb( 150, 150, 150 )' ).
addColorStop( 1, 'rgb( 170, 170, 170 )' );
const supportGradient = new LinearGradient( transformedColumnShape.bounds.centerX - supportWidth / 2, 0, transformedColumnShape.bounds.centerX + supportWidth / 2, 0 ).addColorStop( 0, 'rgb( 150, 150, 150 )' ).addColorStop( 0.25, 'rgb( 210, 210, 210 )' ).addColorStop( 0.65, 'rgb( 150, 150, 150 )' ).addColorStop( 1, 'rgb( 170, 170, 170 )' );
const columnSupportNode = new Rectangle(
transformedColumnShape.bounds.centerX - supportWidth / 2,
transformedColumnShape.bounds.maxY - supportHeight,
Expand Down

0 comments on commit 58b09ed

Please sign in to comment.