Deviant Login Shop  Join deviantART for FREE Take the Tour
About Deviant Member Al23/Male/Poland Group :iconfoo-nation: Foo-Nation
All Things Foobar2000
Recent Activity
Deviant for 3 Years
Needs Premium Membership
Statistics 28 Deviations 1,522 Comments 13,302 Pageviews

Random Favourites



:bulletred: Stalk me on STEAM

Leave me a comment on DA if you want to add me.

:bulletblue: About me:
Mind that I'm unbelievably modest and handsome! I'm kidding, just handsome. My fave things are:
- theming
- drawing
- drum & bass, trip-hop and power metal
- tinkering
- girls :dummy:

:bulletblack: My rig:
CPU AMD FX8350 x8 @ 4,5 GHz Black Edition Unlocked
GPU EVGA GeForce 770GTX SuperClocked ACX 2GB
PSU OCZ Stream-Pro Modular 800W
MEM Corsair Vengeance 16GB 1600MHz
MoBo MSI 990FXA GD65 Military Class
SDD Samsung 840PRO SSD 120GB
HDD Seagate Barracuda 1TB 7200
Mouse Razer Diamondback Chameleon
Screen EIZO Foris FS2333-BK LCD 23" (1920x1080)
Tablet Wacom Bamboo 3



Hey guys, just wanted to let you know that VERONiCA is almost ready for release. I just have to test it for a while.

It will include 8 color themes:
:bulletblue: NiCA (default blue) - white frame, black playlist and panels, blue accents
:bulletpink: Pehi (default pink) - steel frame, black playlist and panels, pink accents
:bulletorange: Gordon (dark) - gray frame, gray playlist and panels, orange accents
:bulletgreen: Brock (dark) - gray frame, gray playlist and panels, green accents
:bulletyellow: Carrie (bright) - lemon frame, gray playlist and panels, orange accents
:bulletred: Izzy (dark) - black frame, white playlist and panels, red accents
:bulletblack: Ellie (OS X feel) - gray frame, gray playlist and panels, blue and red accents
:bulletwhite: Vladko (bright) - white frame, white playlist, light blue and red accents

What's more, each tab will offer context sensitive buttons, for example, playlist tab will show you "show now playing", "show selected" and "playback order" while lyrics tab will show ya "lyrics editor" or "search for lyrics".

And that's it :)


  • Mood: Zest
  • Listening to: Parov Stelar Trio
  • Reading: Starship by Mike Resnick
  • Playing: Alan Wake and Dead Space 3

F2ktuto by slowboyfast

Read other parts:

Composition & Graphics

   In this part, you'll learn the basics of foobar graphic coding. You may think "graphic coding" sounds like something serious and hard, but once you've learned it, it'll be as easy as writing a DA Journal.
This part will focus mainly on using CUI (ColumnsUI), PSS (Panel Stack Splitter) and ELP (ELPlaylist).


  • Maths - most drawing functions use coordinates, lengths, widths and other scary stuff. It's mandatory to have at least basic knowledge of maths (adding, substracting, dividing).
  • Full set of components - your theme is what you want it to be. Make sure you have all addons you want to use.
  • Graphic editing software - it's completely optional but handy when there's no other possibility to draw an element.
  • Large amount of free time - draw it, test it, correct it, repeat!

Ready, set, theme!

1. Compose

   Your project should start like any other big thing. You may want to hop right in into skinning but what if all of your work will go into something that won't work. It's always good to start drawing your idea on paper. Try to make a mockup in Photoshop or Gimp. Experiment with colors and layouts. Make something that is good looking and easy to use.

I'm always starting with a messy sketch:Brainstorm by slowboyfast

And it helps me with achieving results like this:
Wip by slowboyfast

2. Draw

   Ok, so you've got your plan clear in your head, sketched and prepared. I'm also assuming that you're familiar with Markkoenig's tutorial part 1. Now it's time to draw stuff. There are some basic functions you need to know:

  1. $drawrect - draws rectangles and lines
  2. $drawroundrect - draws rounded rectangles (my favorite for making buttons)
  3. $gradientrect - draws gradients
  4. $drawblurrect - draws blurry rectangles (useful for making shadows/glows)
  5. $drawellipse - draws ellipses
  6. $drawtriangle - draws triangles
It's worth noting that each function consists of coordinates, height & width values, color values and special arguments. They work in both ELPlaylist and PSS.

1. $drawrect
As I stated earlier, it's used for drawing rectangles and lines. It's pretty much the most essential function.
String for $drawrect looks like this:
In example, if we want to draw horizontal line, we should write:


And it will draw a red line on coords 50(X), 50(Y), which will be 300px long and 1px wide.Redline by slowboyfast

If we want to draw a rectangle, we can just modify the width of our first line and move it a little to the bottom.

It will draw a rectangle on coords 50(X), 70(Y). It'll be 300px long and 10px wide.

Redrect by slowboyfast

Ok, let's draw vertical line this time. We should change the X coord to, let's say, 360(X). This way our new line will stay visible. We should also change the color for good measure.

And look, our blue line is here!
Blueline by slowboyfast

2. $drawroundrect
Well, it should be obvious, it's used for drawing rectangles with rounded corners :)
String for this function looks like this:
Now, we need some math. Degree of roundness is defined by R1 and R2. To achieve nice looking rounded corners you should remember that WIDTH should always be greater than 4*R1 and HEIGHT should always be greater than 4*R2.

Okay, enough with maths, let's draw ourselves a nice roundrect.

And here it is, a small rounded rectangle. Notice that our width (100) is greater than R1 (3*4=12). Same thing goes for height (20) which is greater than R2 (3*4=12).
Roundrect by slowboyfast

. $gradientrect
Next thing is gradientrect. And it draws, guess what, gradients!

Now lets draw two of them, just to show people how amazing gradients are.
First gradient will be a horizontal one. To achieve this, we gonna write our string like this (with "horizontal" argument):
Second one should be vetical. Small modification of X and Y coords, maybe a slight change in the color. We should also add "vertical" as an argument.

Amazing gradients!
Gradients by slowboyfast

4. $drawblurrect
Nothing much to say about this one. Draws blurred rectangles. Ideal for glowing stuff or shadows.
We can control amount of blur by modifying BLUR STRENGTH argument (1 - weak blur, 7 - strong blur)

Let's draw some blurry things, shall we? First one will be level 1 blurred rectangle, second will get level 7 blur.

Few small changes in coords and color and here they are. Blurrects!
Blur by slowboyfast

5. $drawellpise
Another self explanatory function which draws ellipses :) String looks like this:

Let's play with this one. By modifying WIDTH and HEIGHT we can make perfect circles or stretched ellipses.
First one will be a perfect circle. Move it a little to the bottom and make sure WIDTH and HEIGHT are equal.
Second one will be stretched vertically. Move it to the left and increase its height.
Last one will be stretched horizontally. Move it again and increase its width.

And we made it. Three little dots!
Ellipses by slowboyfast

6. $drawtriangle

It's a tricky one. Draws triangles. String looks like this:

It has 3 coords for X and 3 for Y. Each one represents a corner of a triangle. Let's draw one.

Here it is, a triangle.
Triangle by slowboyfast

3. Write

    Yeah, that's right. Making text strings is another essential thing for f2k themer. They're found nearly everywhere. On playlists, panels and buttons.

There are four functions that are capable of drawing text:
  1. $drawtext - which is capable of alpha blending, glowing and other shiny stuff
  2. $drawtextex - which can't do transparency but is faster than $drawtext (it's better for spamming and creating crispy, strong shadows)
  3. $textbutton - which draws buttons made entirely of letters
  4. $drawstring - can do magics! (gonna describe it later)
1. $drawtext
String looks like this:
Arguments for $drawtext:
  • left - aligns text to the left
  • right - aligns text to the right
  • hcenter - centers text horizontally
  • vcenter - centers text vertically
  • top - aligns text to the top
  • bottom - aligns text to the bottom
2. $drawtextex
String looks like this:
Arguments for $drawtextex:
  • left - aligns text to the left
  • right - aligns text to the right
  • hcenter - centers text horizontally
  • vcenter - centers text vertically
  • top - aligns text to the top
  • bottom - aligns text to the bottom
  • end_ellipsis - if your text is too long, this arg. resolves clipping issues by ending text with (...)
Right, now we should test our functions. Let's make two strings, one made in $drawtext and second made in $drawtextex
$drawtext(THIS TEXT WAS WRITTEN BY '$DRAWTEXT' FUNCTION,50,50,300,20,0-0-0,)
$drawtextex(THIS TEXT WAS WRITTEN BY '$DRAWTEXTEX' FUNCTION,50,70,300,20,0-0-0,)

Textstrings by slowboyfast

As you may noticed, both strings look similar, so here's my advice. If you can, go for $drawtextex. It's faster, can solve clipping errors and is good for making nice little effects on buttons and playlists.

3. $textbutton
One of the most versatile functions out there. It can show/hide panels, minimize, maximize, change layouts. It can do nearly everything we want it to do.
It's string consists of:

In example, if we want to make a button that opens up preferences, we can write a string like this:

When we move our mouse over this button, it will change color to red. And of course clicking on it, will open up prefs.

We can control font size, type and face with one simple string.
FACE - is a name of our font e.g. Calibri Bold Caps
SIZE - controls size :)
TYPE - controls if our font is normal, bold or italic.

And again, it's visible here:
Textstrings by slowboyfast

4. Combine

    To make some decent looking themes, we need to combine those drawing functions. It's similar to using layers in graphic apps, only instead of "WYSIWYG" interface we're on our own with lines of code. 
Combining, or as I like to call it - layering, occurs when we put a shape over other shape. In foobar, it may be a little awkward since topmost layer is always closer to the bottom. Everything we write last will be put on top of other things. Look at this two rectangles below.
L1 by slowboyfast

In this case, cyan rectangle (layer 2) is our top layer. Look what happens when we switch layer 2 (cyan) with layer 1 (magenta).

L2 by slowboyfast

Since magenta rectangle is now closer to the bottom, foobar will treat it as topmost layer. This technique can be used to achieve pretty nice effects. Let's say we want to make a simple looking art viewer for our skin. We should start with drawing a rectangle:


Albart1 by slowboyfast

Then, we wan't to put a smaller and a bit darker rectangle over it. It will create a thick border.:


Albart2 by slowboyfast

Next, we should use artreader function to display our artwork:

$imageabs(44,9,162,162,%path%,artreader nokeepaspect,)

Albart3 by slowboyfast

Looks ok, but it's a little bland. Let's make our cover a bit lighter on top:


Albart4 by slowboyfast

Looks even better. We should add a little shiny effect in top left corner for good measure:


Albart5 by slowboyfast

There's still something missing here. We should add a shadow to make it complete. To do this, we have to move all our code a notch to the bottom and write a $drawblurrect function:


Albart6 by slowboyfast

And that's it. That's how we draw stuff in foobar (or at least in PSS). 

This part is still incomplete (mostly because of my work, I don't have much time lately) but I'll add more. I just want to share this little starter guide. Hope it helps all those people who are new to f2k. Cheers! ;)

To do:
  • describe $drawstring
  • control height and width with %_width% & %_height%
  • insert images with %imageabs
  • make some efficient global settings with $puts
  • $add, $sub and $div or simply add, substract and divide
  • floating panels (POP-UPS!)
  • retractable panels

AdCast - Ads from the Community



Add a Comment:
du22y Featured By Owner 14 hours ago
Thanks for the fav :-) (Smile)
Mahm0udWally Featured By Owner Sep 13, 2014  New member Hobbyist General Artist
Thanks for the +fav
slowboyfast Featured By Owner Sep 13, 2014
No problem man, your idea is awesome :)

+ I love your wallpapers
Mahm0udWally Featured By Owner Sep 13, 2014  New member Hobbyist General Artist
Thanks again :) (Smile) 
mnshsharma Featured By Owner Aug 27, 2014
Hey al do you have that crshd foobar. Really dig that. If you can give it that would be great.
Add a Comment: