Created
January 5, 2023 20:58
-
-
Save rayrayzayzay/f2d208ccbb6bc3f5d2704eac43d7d7ff to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function makeCursorUrl( | |
base64svg: string, | |
size: number, | |
fallback = "auto" | |
): string { | |
const centre = size / 2; | |
return `url(${base64svg}) | |
${centre} ${centre}, ${fallback}`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment