Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >>> fcn = QgsColorRampShader()
- >>> fcn.setColorRampType(QgsColorRampShader.INTERPOLATED)
- >>> lst = [ QgsColorRampShader.ColorRampItem(0, QColor(0,255,0)),
- QgsColorRampShader.ColorRampItem(255, QColor(255,255,0)) ]
- >>> fcn.setColorRampItemList(lst)
- >>> shader = QgsRasterShader()
- >>> shader.setRasterShaderFunction(fcn)
Add Comment
Please, Sign In to add comment