Wallpaper generator ⚠️ No longer supported ⚠️

First of all, really cool, thanks for your efforts. This is going to be a fun thing.

How different are other Kanji orders to the Heisig order? The order in which Japanese School Kids would learn may also be interested to see, how much “ahead” or “behind” the WaniKani method is.

The reason for choosing Heisig is because I have a poster that’s already using that ordering scheme, But I’m definitely planning to add support for custom orders, including pseudo-random ordering and ordering by progress.

As it is now, the Heisig order is loaded from file, so you could change the order by moving characters around in it. I will also add support to change which file is loaded somewhere before the 1.0 release.

Wow neat!

This looks quite genius. +1 for using the font cache instead of grabbing the files. Perhaps a sane default, with the ability to specify another font on the command line? Lots of fonts have CJK glyphs, after all.

Just prepackage a default free font. That’s what I did, and then adding the command line option. The ipag font is free after all.

That’s actually what I’m thinking. SDL_ttf doesn’t include any code to detect installed fonts, so I would need to find and use another library.

I’m using Arch Linux as my main Linux distro, so for that I’ll write a PKGBUILD that has “otf-ipafont” as a required package, but for the windows version I’ll just bundle it.

luluhouse7 said... ummmm I know how to compile in linux, but I have no idea how do run this stuff on windows (do makefiles even work in windows?) so if someone would care to explain how to port to windows that would be great
 You can use makefiles pretty easily under Windows with MinGW + MSYS. MSYS is a basic Unix shell environment that handles makefiles quite nicely.

I got it compiled and running on Windows after some fumbling around with dependencies.



And…



I’ll be able to provide updated Windows builds if you’d like once some oddities are sorted out :slight_smile:

Awesome little program, akranis.

1 Like

This is really cool way to create a visual reminder of your progress. I can’t help develop it, but I’ll definitely be checking back in on this topic later :) 

Currently working on a small simple web interface for the Go version. Still have an unused server left. So, expect an online generator within the next 1-2 weeks.

rootnode said... Currently working on a small simple web interface for the Go version. Still have an unused server left. So, expect an online generator within the next 1-2 weeks.
 <3

I packaged a Windows build up for those who want to try it out. All credit goes to akranis.

Please note that this is functionally identical to the original Linux code I pulled from akranis’s GitHub. It is currently NOT USER-FRIENDLY, so run this at your own risk (although I expect this will change soon). That being said, I only tested my build on Windows 7 64-bit and Windows XP 32-bit. There may be problems I am not aware of.

Also note that the wallpaper is currently hardcoded to be 1920x1080. I am currently only providing builds, not adding features.

You can get it here: https://docs.google.com/file/d/0B45KzpxyN8ncRl8xenFGT2xtUDg/edit?usp=sharing
VirusTotal report: https://www.virustotal.com/en/file/87acc73b3c9b5a97078f9885daaa35fa0560cd46e8989bd933b28941f2defaa0/…

Go to File and click Download or hit Ctrl+S to download the zip file.

Unzip everything to a new folder and navigate there in a command prompt window. Type “wanikaniwallpaper” followed by your WaniKani API key and hit enter. An out.png file should appear in your folder within a few seconds.

Example: wanikaniwallpaper abcdefghijklmnopqrstuvwxyz012345

Enjoy!

1 Like
silentdude56k said... I packaged a Windows build up for those who want to try it out. All credit goes to akranis.

Please note that this is functionally identical to the original Linux code I pulled from akranis's GitHub. It is currently NOT USER-FRIENDLY, so run this at your own risk (although I expect this will change soon). That being said, I only tested my build on Windows 7 64-bit and Windows XP 32-bit. There may be problems I am not aware of.

Also note that the wallpaper is currently hardcoded to be 1920x1080. I am currently only providing builds, not adding features.

You can get it here: https://docs.google.com/file/d/0B45KzpxyN8ncRl8xenFGT2xtUDg/edit?usp=sharing
VirusTotal report: https://www.virustotal.com/en/file/87acc73b3c9b5a97078f9885daaa35fa0560cd46e8989bd933b28941f2defaa0/...

Go to File and click Download or hit Ctrl+S to download the zip file.

Unzip everything to a new folder and navigate there in a command prompt window. Type "wanikaniwallpaper" followed by your WaniKani API key and hit enter. An out.png file should appear in your folder within a few seconds.

Example: wanikaniwallpaper abcdefghijklmnopqrstuvwxyz012345

Enjoy!
 Works great! Many thanks silentdude and akranis!

Fantastic! Thank you both :slight_smile:

Brilliant!


silentdude56k said…Unzip everything to a new folder and navigate there in a command prompt window. Type “wanikaniwallpaper” followed by your WaniKani API key and hit enter. An out.png file should appear in your folder within a few seconds.

Example: wanikaniwallpaper abcdefghijklmnopqrstuvwxyz012345
 For other people who are lazy like me, you can right click the exe in folder and create a shortcut to it, right click the shortcut and properties. In the target box, change the end of the target to: “C:\Some\file\path\wanikaniwallpaper.exe THIS_IS_YOUR_API_KEY_HERE” (without the quotes) note the space between the exe and the start of your api key. Then, any time you want to update the wallpaper you just have to double click the shortcut without having to retype your api key in the command prompt each time

1 Like

Right, next feature I’ll be adding is to add boost program_options. After that I’ll be replacing SDL with FreeType, no sense in running an entire game library when a font-library will do. (Mostly also because SDL requires a graphical environment to run and as such can not be run in the background by cron [scheduling program for linux/unix])

Boost program options enables two things, one: reading arguments from commandline, two: reading variables from *.ini files.
All options will be available in both commandline and config, where config is read first and command line arguments overwrite them if defined. All options also have default values if they are not set in config or commandline.

Options that will be available [default value]:
 - key: Your wanikani key [no default value, program exits with error if not defined]
 - height: Height of image in pixels [1080]
 - width: Width of image in pixels [1920]
 - margin-left: blank space at the left in pixels [10]
 - margin-right: blank space at the right in pixels [10]
 - margin-top: blank space at top in pixels [10]
 - margin-bottom: blank sapce at bottom in pixels [10]
 - color-unseen: Color of characters that havn’t been introduced yet. (All colors are in hexadecimal format, eg: #FF00FF)
 - color-apprentice: Color of apprentice level characters
 - color-guru: Color of guru level characters
 - color-master: Color of master level characters
 - color-enlightened: Color of enlightened level characters
 - color-burned: Color of burned characters
 - color-background: Color of background
 - font: Path to font you want to use
 - output: path and name of saved file [out.png]

Are there any request for other options you want available?

Works great thanks!

I would love an executable, or at least instructions to make it executable, for others who do not know how.

Time said... I would love an executable, or at least instructions to make it executable, for others who do not know how.
 silentdude56k provides one that works for the moment for Windows.

I have a couple of features left to add before I provide an official release, as the current version requries you to edit the code in order to fit it to different resolutions.

Windows is horrible, I use linux like you.