Skip to content

Commit

Permalink
Add preview image to getCursorAlpha
Browse files Browse the repository at this point in the history
  • Loading branch information
Fernando-A-Rocha committed Jan 17, 2025
1 parent 24735f8 commit bb4aaaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion functions/Cursor/getCursorAlpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,10 @@ client:
name: 'getCursorAlpha'
pair: 'setCursorAlpha'
description: |
This function is used to get the client's cursor alpha (transparency).
This function is used to get the client's cursor alpha (transparency).
preview_images:
- path: '/assets/cursor-alpha.jpg'
description: 'Visual representation of the cursor alpha'
returns:
description: |
Returns a int between 0 and 255, where 255 is fully opaque and 0 is fully transparent.
Expand Down
2 changes: 1 addition & 1 deletion functions/Cursor/setCursorAlpha.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ client:
This function is used to change alpha (transparency) from the client's cursor.
preview_images:
- path: '/assets/cursor-alpha.jpg'
description: 'Example for setCursorAlpha'
description: 'Visual representation of the cursor alpha'
parameters:
- name: 'alpha'
type: 'int'
Expand Down

0 comments on commit bb4aaaf

Please sign in to comment.