netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp2.2 netcoreapp2.2 was computed. netcoreapp2.1 netcoreapp2.1 was computed. Netcoreapp2.0 netcoreapp2.0 was computed. net7.0-windows net7.0-windows was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-android net7.0-android was computed. net6.0-windows net6.0-windows was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-android net6.0-android was computed. net5.0-windows net5.0-windows was computed. Versions Compatible and additional computed target framework versions. (Figure E: The '\' before the space is used to escape it so that it is included in the command) is longer than 24 characters or there are more than 3 lines. Automatically throw an ArgumentException if a formatted line Some of the features were specifically designed for use with an automated system. (Figure D: The supposed output from the command line example above) Example use of this libraryĭivergence isn't extremely useful or anything, but it can be fun to use as a bot command. (Note: No command line program exists for this library at the moment.) DivergenceArgs.Escape uses the DivergenceEscape enum to allow 3 choices: None (Don't escape anything), NewLines (Only escape \r and \n), and All (Escape any character after '').Īn example would be in the command line: divergence.exe "#1\n#2". In many scenarios, the user may not be able to pass actual new line characters if not done programmatically. (Figure C: Drawing the divergence meter onto a CG to display the worldline) Escaping Draw Figure Cīackground = "EV_Z02A.PNG", // The CG backgroundĭivergence.CalculateSpacingFor(1920 / 2, 1080 / 2, text, ref args, left: 5, top: 2) DivergenceArgs.Background is actually a struct called DivergenceBackground that can draw a background color, and/or a bitmap that is optionally scaled to fit the output image size. (Figure B: Displaying the date and time) (Figure A: Displaying the name of the font used for all other characters) BackgroundsĪs you can see in the code below, DivergenceArgs.Background accepts string as well. Using (Bitmap bmp = Divergence.Draw(text, args))Īrgs.Spacing = new DivergenceSpacing(5, 5) using TriggersTools.SteinsGate īackground = Color.FromArgb(224, 224, 224), The library currently doesn't support drawing at other scales, but that could be added later. At the moment, nixie tubes can be drawn at 3 pre-scaled sizes: Large (132x428px per tube), Medium (66x214px per tube), or Small (33x107px per tube). Basic Examplesīelow is example code used to draw nixie tubes using the Divergence static class. This font was chosen as it had a similar style as well as perfect aspect ratio for each character. The rest of the available characters are drawn with the Oslo II font, by Antonio Rodrigues Jr. Allows you to programatically draw Divergence Meter nixie tubes from the visual novel & anime: Steins Gate.ĭivergence uses graphics taken from the Steins Gate visual novel for drawing the tubes, digits, and decimal point.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |