using a more interesting gradient

This commit is contained in:
Uwe Rathmann 2022-12-22 20:43:19 +01:00
parent 2392f458af
commit 877f4151bc
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ namespace
{ { 0.5, QskRgb::MediumVioletRed }, { 0.5, QskRgb::Navy } };
QskGradient gradient( stops );
gradient.setLinearDirection( 0.5, 0.0, 0.5, 0.5 );
gradient.setLinearDirection( 0.3, 0.7, 0.75, 0.3 );
shapeItem->setGradient( gradient );
}

View File

@ -60,7 +60,7 @@ Qsk.Window
gradient:
({
linear: { x1: 0.5, y1: 0, x2: 0.5, y2: 0.5 },
linear: { x1: 0.3, y1: 0.7, x2: 0.75, y2: 0.3 },
stops: [
{ position: 0.5, color: "MediumVioletRed" },