Skip to content

Commit

Permalink
Merge pull request #6 from Rishi-k-s/patch-1
Browse files Browse the repository at this point in the history
Update hero.ts
  • Loading branch information
rohittp0 authored Mar 13, 2024
2 parents 5ea49e5 + d394b1c commit 99620c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sections/hero.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ function createTextTexture(text: string) {

canvas.width = 128; // Adjust these dimensions based on your requirements
canvas.height = 128;
context.fillStyle = color ? '#ffffff' : '#ff4b00';
context.fillStyle = color ? '#ffffff' : '#FF5237';
context.fillRect(0, 0, canvas.width, canvas.height);

context.fillStyle = color ? '#ff4b00' : '#ffffff';
context.fillStyle = color ? '#FF5237' : '#ffffff';
context.fillRect(10, 10, canvas.width - 20, canvas.height - 20);

context.font = 'bold 130px monospace'; // Adjust font size and style as needed
Expand Down

0 comments on commit 99620c1

Please sign in to comment.