CanvasGradient QML Type
불투명 캔버스 그라데이션 인터페이스를 제공합니다. 더 보기...
Import Statement: | import QtQuick |
메서드
- CanvasGradient addColorStop(real offset, string color)
상세 설명
메서드 문서
CanvasGradient addColorStop(real offset, string color) |
지정된 offset 의 그라데이션에 지정된 color 의 컬러 스톱을 추가합니다. 0.0은 그라데이션의 한쪽 끝의 오프셋, 1.0은 다른 쪽 끝의 오프셋입니다.
예를 들어
var gradient = ctx.createLinearGradient(0, 0, 100, 100); gradient.addColorStop(0.3, Qt.rgba(1, 0, 0, 1)); gradient.addColorStop(0.7, 'rgba(0, 255, 255, 1)');
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.