Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
simonhamp committed Jul 24, 2024
1 parent da4cb01 commit 74a408b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Traits/RendersFeatures.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,12 @@ public function render(Config $config): Image
$this->renderBackground();
}

// Prep this layout's feature stack
$this->features();

// Loop over the stack of features and render each to the canvas
// The order of the items in the stack will determine the order in which they are rendered and thus their
// 'layering' on the canvas: earlier elements will be rendered 'underneath' later elements.
$this->features();

foreach ($this->features as $feature) {
$feature->render($this->canvas);
}
Expand Down

0 comments on commit 74a408b

Please sign in to comment.