More Krita 2.7 features

Recently Boudwijn presented his vacation work on the flipbook and smoothing feature. He wasn’t the only one having fun hacking new Krita features. I’m presenting you some of the new features that I developed in the last few days.

Freehand path tool

First feature I worked on was the “Freehand path tool” (Not the best name, I might rename that if I find a better one). Krita users might already know the old Pencil tool that came from Karbon and could also be used in Krita for vector graphics. One of the shortcoming of that tool was that it so far couldn’t use Krita brushes, which confused some users.

To solve that I created a the new tool which internally reuses the pencil tool and uses the painting capability of the path tool. With the result that the new tool can be used on pixel and vector layer. When painting on pixel-based layers Krita will paint with the current brush, on a vector layer it will insert a shape.

One might wonder why this is a big deal compared to the already existing freehand tool. The interesting feature of this tool is that the complete stroke stays a path until it’s finished. This allows some nice post-processing steps e.g. it possible to smooth the stroke much more than the freehand tool can while painting. Small downside with the is that it doesn’t use brush dynamics.

The screenshots below show an example with my mouse path and the resulting smooth stroke painted with a Krita brush (I cranked up the smoothing, so it a far more aggressive smoothing than one would usually use).

smooth3

smooth4

Painting any shape with Krita brushes

Almost immediately after I had done the Freehand path tool, I got the next request. If we can stroke any path path shape with Krita, why not add the functionality to do it with all shapes? I thought that would be pretty easy to do, turned out it needed some tricky coordinate transformation. But I finally got it working an the result is quite fun.

In the screenshot below you can see a flower shape that I let it paint with the pixel brush:

flower

Also interesting is that you can open SVG files in Krita and then trace all the paths inside it.

QML Export

The last feature that I added was the ability to export to QML. This feature is especially interesting for everybody designing special QML interfaces. It exports a all the top-level layers in the Krita image as image and creates a QML file where all the images are inserted as image objects, so the QML UI looks exactly like in Krita (if you you the default composite op). Other attributes that are exported are layer name and opacity, which are mapped to the id and opacity of the object.

A very simple example:

qml

Currently it only exports QML 1.1, but that should be easy to change when I use Qt 5.

More coming in 2013…

2013 will be a very interesting year for Krita with 2.6 to be released this month, 2.7 in summer with the features above and then 2.8 in fall/winter. I also think that Krita Sketch will gain more attraction. We have a lots of things coming up in terms of fixes and performance improvements.

Personally the one thing I’m looking most forward to in 2013 is KDE Frameworks 5. I think it will really be a game changer for Krita, allowing us to cut a number of dependencies which will make Krita much more interesting for many non-KDE users. A Krita version based on it will most likely take till 2014.

Don’t forget the Create Konqui with Krita contest. You still have till end of the month to submit your entry.

About these ads

6 Responses to “More Krita 2.7 features”

  1. gp428 Says:

    The best app of KDE universe!!!

  2. jospoortvliet Says:

    Awesome work, dude. Krita is indeed incredibly impressive, thanks to the work you all do!

  3. Aman Says:

    Really Impressive dude,nice to see that Krita developers are seriously interested in making a world class Sketching and Painting app which is much much much better than Commercial Softwares like Corel Painter or Sketchbook pro or PD artist Artist or ArtRage.
    But I have a request.please consider this:

    http://forum.kde.org/viewtopic.php?f=137&t=109113

    My request is:
    My advice would be lasso tool should be similar to that available in Sketchbook Pro or Adobe photoshop.Then it would work really well.
    Sometimes,we do a really complicated selection in car designing or product designing and you do need a good selection tool.The small squares which appear along the path of selection do not work out for precision.The selection should appear as moving discontinuous and thin line curves with small spacing.
    Although I have reported this as a bug,its better that I inform this issue everywhere so that more and more Krita developers would get to know about my request.

  4. Geist Says:

    Loving the new freehand path tool for painting with the raster brushes! Is there a way to make raster layer paths stay paths until a button is clicked or a keyboard shortcut used? It would be awesome to plot out some linework with the freehand path tool, be able to adjust the vertices and re-stroke them with the raster brush on demand. I am honestly curious since I’m not sure which part of that is Krita and which is Karbon, which is the vector library used, right? Anyway, again, thank you for these improvements already, getting closer to Paint Tool SAIs lineart/vector layer capabilities bit by bit.
    Cheers!

  5. slangkamp Says:

    Yes, that’s exactly what the “Painting any shape with Krita brushes” is about. You click on Edit->Stroke selected shapes and it will draw the selected shapes with the current brush.

  6. Geist Says:

    Ahh! Thank you for explaining. I looked at your screenshots and tried to find tool settings and so on, arranged a raster layer above a vector one, thinking that would perhaps unlock some sort of `painting on guides’ kind of thing, but nothing. Didn’t occur to me to check the edit menu. Thanks.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: