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
from krita import * # type: ignore | |
from PyQt5.QtCore import QPointF | |
from PyQt5.QtGui import QImage, QTransform, QCursor | |
from PyQt5.QtWidgets import QMdiArea, QAbstractScrollArea | |
import math | |
''' | |
pickcolor shortcut for Krita: | |
picks color under the cursor by shortcut | |
This script is based on https://github.com/seguso/KritaColorPlus |
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
from krita import * # type: ignore | |
from PyQt5.QtGui import QColor | |
import random | |
''' | |
HSVshifter for Krita: | |
This script uses the background color to generate | |
a new color based on the following ranges to shift: | |
hue_range | |
sat_range |
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
from krita import * # type: ignore | |
from time import time | |
from PyQt5.QtCore import QByteArray | |
''' | |
Pseudo Pixel Perfect (PPP) post-process for Krita: | |
It removes double pixels (in an L-shaped configuration) | |
and then thins it using the Zhang-Suen thinning algorithm, | |
aiming to recreate the feel of a pixel-perfect stabilization brush. |