• What Are You Working On? May 2015
    1,601 replies, posted
[QUOTE=Berkin;47699462]I got sick of always having to consult MSDN whenever I needed to find a window message code and write a constant for it, so I'm writing a library that contains all the constants in one place, with the summaries for each one. [t]http://i.imgur.com/qMQwRaJ.png[/t] I'll also be writing utility methods for retrieving the name of a message from its code, and vice versa.[/QUOTE] You are doing god's work.
[QUOTE=Berkin;47699462]I got sick of always having to consult MSDN whenever I needed to find a window message code and write a constant for it, so I'm writing a library that contains all the constants in one place, with the summaries for each one. [img]http://i.imgur.com/qMQwRaJ.png[/img] I'll also be writing utility methods for retrieving the name of a message from its code, and vice versa.[/QUOTE] It would be great if you put that into an [I]int enum[/I] with nicer name formatting, e.g. [I]WindowMessage.SetFocus[/I]. That way you could cast the value you get from WinForms to it and then autofill switch clauses and the like (and when formatting it into text output you'd also see the names instead of numbers by default).
[QUOTE=Berkin;47699462]I got sick of always having to consult MSDN whenever I needed to find a window message code and write a constant for it, so I'm writing a library that contains all the constants in one place, with the summaries for each one. [img]http://i.imgur.com/qMQwRaJ.png[/img] I'll also be writing utility methods for retrieving the name of a message from its code, and vice versa.[/QUOTE] I'm not gay but will you marry me?
[QUOTE=Tamschi;47699792]It would be great if you put that into an [I]int enum[/I] with nicer name formatting, e.g. [I]WindowMessage.SetFocus[/I]. That way you could cast the value you get from WinForms to it and then autofill switch clauses and the like (and when formatting it into text output you'd also see the names instead of numbers by default).[/QUOTE] Done! [URL="https://github.com/TheBerkin/Fenster/blob/master/Fenster/WindowMessages.cs"]Here is my progress so far.[/URL]
[QUOTE=Berkin;47699462]I got sick of always having to consult MSDN whenever I needed to find a window message code and write a constant for it, so I'm writing a library that contains all the constants in one place, with the summaries for each one.[/QUOTE] I'm not too familiar with winapi but do they really not have that in some header file you could convert?
[QUOTE=DrTaxi;47699969]I'm not too familiar with winapi but do they really not have that in some header file you could convert?[/QUOTE] Probably, but I already have all the WM_* messages in front of me in enum format, so there's no need for that.
I just reformatted this from [url]http://xkcd.com/color/rgb.txt[/url], but it may be useful to you: [csharp]// License: [url]http://creativecommons.org/publicdomain/zero/1.0/[/url] namespace XkcdColors { public enum Color : uint { CloudyBlue = 0xacc2d9, DarkPastelGreen = 0x56ae57, Dust = 0xb2996e, ElectricLime = 0xa8ff04, FreshGreen = 0x69d84f, LightEggplant = 0x894585, NastyGreen = 0x70b23f, ReallyLightBlue = 0xd4ffff, Tea = 0x65ab7c, WarmPurple = 0x952e8f, YellowishTan = 0xfcfc81, Cement = 0xa5a391, DarkGrassGreen = 0x388004, DustyTeal = 0x4c9085, GreyTeal = 0x5e9b8a, MacaroniAndCheese = 0xefb435, PinkishTan = 0xd99b82, Spruce = 0x0a5f38, StrongBlue = 0x0c06f7, ToxicGreen = 0x61de2a, WindowsBlue = 0x3778bf, BlueBlue = 0x2242c7, BlueWithAHintOfPurple = 0x533cc6, Booger = 0x9bb53c, BrightSeaGreen = 0x05ffa6, DarkGreenBlue = 0x1f6357, DeepTurquoise = 0x017374, GreenTeal = 0x0cb577, StrongPink = 0xff0789, Bland = 0xafa88b, DeepAqua = 0x08787f, LavenderPink = 0xdd85d7, LightMossGreen = 0xa6c875, LightSeafoamGreen = 0xa7ffb5, OliveYellow = 0xc2b709, PigPink = 0xe78ea5, DeepLilac = 0x966ebd, Desert = 0xccad60, DustyLavender = 0xac86a8, PurpleyGrey = 0x947e94, Purply = 0x983fb2, CandyPink = 0xff63e9, LightPastelGreen = 0xb2fba5, BoringGreen = 0x63b365, KiwiGreen = 0x8ee53f, LightGreyGreen = 0xb7e1a1, OrangePink = 0xff6f52, TeaGreen = 0xbdf8a3, VeryLightBrown = 0xd3b683, EggShell = 0xfffcc4, EggplantPurple = 0x430541, PowderPink = 0xffb2d0, ReddishGrey = 0x997570, BabyShitBrown = 0xad900d, Liliac = 0xc48efd, StormyBlue = 0x507b9c, UglyBrown = 0x7d7103, Custard = 0xfffd78, DarkishPink = 0xda467d, DeepBrown = 0x410200, GreenishBeige = 0xc9d179, Manilla = 0xfffa86, OffBlue = 0x5684ae, BattleshipGrey = 0x6b7c85, BrownyGreen = 0x6f6c0a, Bruise = 0x7e4071, KelleyGreen = 0x009337, SicklyYellow = 0xd0e429, SunnyYellow = 0xfff917, Azul = 0x1d5dec, Darkgreen = 0x054907, GreenOrYellow = 0xb5ce08, Lichen = 0x8fb67b, LightLightGreen = 0xc8ffb0, PaleGold = 0xfdde6c, SunYellow = 0xffdf22, TanGreen = 0xa9be70, Burple = 0x6832e3, Butterscotch = 0xfdb147, Toupe = 0xc7ac7d, DarkCream = 0xfff39a, IndianRed = 0x850e04, LightLavendar = 0xefc0fe, PoisonGreen = 0x40fd14, BabyPukeGreen = 0xb6c406, BrightYellowGreen = 0x9dff00, CharcoalGrey = 0x3c4142, Squash = 0xf2ab15, Cinnamon = 0xac4f06, LightPeaGreen = 0xc4fe82, RadioactiveGreen = 0x2cfa1f, RawSienna = 0x9a6200, BabyPurple = 0xca9bf7, Cocoa = 0x875f42, LightRoyalBlue = 0x3a2efe, Orangeish = 0xfd8d49, RustBrown = 0x8b3103, SandBrown = 0xcba560, Swamp = 0x698339, TealishGreen = 0x0cdc73, BurntSiena = 0xb75203, Camo = 0x7f8f4e, DuskBlue = 0x26538d, Fern = 0x63a950, OldRose = 0xc87f89, PaleLightGreen = 0xb1fc99, PeachyPink = 0xff9a8a, RosyPink = 0xf6688e, LightBluishGreen = 0x76fda8, LightBrightGreen = 0x53fe5c, LightNeonGreen = 0x4efd54, LightSeafoam = 0xa0febf, TiffanyBlue = 0x7bf2da, WashedOutGreen = 0xbcf5a6, BrownyOrange = 0xca6b02, NiceBlue = 0x107ab0, Sapphire = 0x2138ab, GreyishTeal = 0x719f91, OrangeyYellow = 0xfdb915, Parchment = 0xfefcaf, Straw = 0xfcf679, VeryDarkBrown = 0x1d0200, Terracota = 0xcb6843, UglyBlue = 0x31668a, ClearBlue = 0x247afd, Creme = 0xffffb6, FoamGreen = 0x90fda9, GreyOrGreen = 0x86a17d, LightGold = 0xfddc5c, SeafoamBlue = 0x78d1b6, Topaz = 0x13bbaf, VioletPink = 0xfb5ffc, Wintergreen = 0x20f986, YellowTan = 0xffe36e, DarkFuchsia = 0x9d0759, IndigoBlue = 0x3a18b1, LightYellowishGreen = 0xc2ff89, PaleMagenta = 0xd767ad, RichPurple = 0x720058, SunflowerYellow = 0xffda03, GreenOrBlue = 0x01c08d, Leather = 0xac7434, RacingGreen = 0x014600, VividPurple = 0x9900fa, DarkRoyalBlue = 0x02066f, Hazel = 0x8e7618, MutedPink = 0xd1768f, BoogerGreen = 0x96b403, Canary = 0xfdff63, CoolGrey = 0x95a3a6, DarkTaupe = 0x7f684e, DarkishPurple = 0x751973, TrueGreen = 0x089404, CoralPink = 0xff6163, DarkSage = 0x598556, DarkSlateBlue = 0x214761, FlatBlue = 0x3c73a8, Mushroom = 0xba9e88, RichBlue = 0x021bf9, DirtyPurple = 0x734a65, Greenblue = 0x23c48b, IckyGreen = 0x8fae22, LightKhaki = 0xe6f2a2, WarmBlue = 0x4b57db, DarkHotPink = 0xd90166, DeepSeaBlue = 0x015482, Carmine = 0x9d0216, DarkYellowGreen = 0x728f02, PalePeach = 0xffe5ad, PlumPurple = 0x4e0550, GoldenRod = 0xf9bc08, NeonRed = 0xff073a, OldPink = 0xc77986, VeryPaleBlue = 0xd6fffe, BloodOrange = 0xfe4b03, Grapefruit = 0xfd5956, SandYellow = 0xfce166, ClayBrown = 0xb2713d, DarkBlueGrey = 0x1f3b4d, FlatGreen = 0x699d4c, LightGreenBlue = 0x56fca2, WarmPink = 0xfb5581, DodgerBlue = 0x3e82fc, GrossGreen = 0xa0bf16, Ice = 0xd6fffa, MetallicBlue = 0x4f738e, PaleSalmon = 0xffb19a, SapGreen = 0x5c8b15, Algae = 0x54ac68, BlueyGrey = 0x89a0b0, GreenyGrey = 0x7ea07a, HighlighterGreen = 0x1bfc06, LightLightBlue = 0xcafffb, LightMint = 0xb6ffbb, RawUmber = 0xa75e09, VividBlue = 0x152eff, DeepLavender = 0x8d5eb7, DullTeal = 0x5f9e8f, LightGreenishBlue = 0x63f7b4, MudGreen = 0x606602, Pinky = 0xfc86aa, RedWine = 0x8c0034, ShitGreen = 0x758000, TanBrown = 0xab7e4c, Darkblue = 0x030764, Rosa = 0xfe86a4, Lipstick = 0xd5174e, PaleMauve = 0xfed0fc, Claret = 0x680018, Dandelion = 0xfedf08, Orangered = 0xfe420f, PoopGreen = 0x6f7c00, Ruby = 0xca0147, Dark = 0x1b2431, GreenishTurquoise = 0x00fbb0, PastelRed = 0xdb5856, PissYellow = 0xddd618, BrightCyan = 0x41fdfe, DarkCoral = 0xcf524e, AlgaeGreen = 0x21c36f, DarkishRed = 0xa90308, ReddyBrown = 0x6e1005, BlushPink = 0xfe828c, CamouflageGreen = 0x4b6113, LawnGreen = 0x4da409, Putty = 0xbeae8a, VibrantBlue = 0x0339f8, DarkSand = 0xa88f59, PurpleOrBlue = 0x5d21d0, Saffron = 0xfeb209, Twilight = 0x4e518b, WarmBrown = 0x964e02, Bluegrey = 0x85a3b2, BubbleGumPink = 0xff69af, DuckEggBlue = 0xc3fbf4, GreenishCyan = 0x2afeb7, Petrol = 0x005f6a, Royal = 0x0c1793, Butter = 0xffff81, DustyOrange = 0xf0833a, OffYellow = 0xf1f33f, PaleOliveGreen = 0xb1d27b, Orangish = 0xfc824a, Leaf = 0x71aa34, LightBlueGrey = 0xb7c9e2, DriedBlood = 0x4b0101, LightishPurple = 0xa552e6, RustyRed = 0xaf2f0d, LavenderBlue = 0x8b88f8, LightGrassGreen = 0x9af764, LightMintGreen = 0xa6fbb2, Sunflower = 0xffc512, Velvet = 0x750851, BrickOrange = 0xc14a09, LightishRed = 0xfe2f4a, PureBlue = 0x0203e2, TwilightBlue = 0x0a437a, VioletRed = 0xa50055, YellowyBrown = 0xae8b0c, Carnation = 0xfd798f, MuddyYellow = 0xbfac05, DarkSeafoamGreen = 0x3eaf76, DeepRose = 0xc74767, DustyRed = 0xb9484e, GreyOrBlue = 0x647d8e, LemonLime = 0xbffe28, PurpleOrPink = 0xd725de, BrownYellow = 0xb29705, PurpleBrown = 0x673a3f, Wisteria = 0xa87dc2, BananaYellow = 0xfafe4b, LipstickRed = 0xc0022f, WaterBlue = 0x0e87cc, BrownGrey = 0x8d8468, VibrantPurple = 0xad03de, BabyGreen = 0x8cff9e, BarfGreen = 0x94ac02, EggshellBlue = 0xc4fff7, SandyYellow = 0xfdee73, CoolGreen = 0x33b864, Pale = 0xfff9d0, BlueOrGrey = 0x758da3, HotMagenta = 0xf504c9, Greyblue = 0x77a1b5, Purpley = 0x8756e4, BabyShitGreen = 0x889717, BrownishPink = 0xc27e79, DarkAquamarine = 0x017371, Diarrhea = 0x9f8303, LightMustard = 0xf7d560, PaleSkyBlue = 0xbdf6fe, TurtleGreen = 0x75b84f, BrightOlive = 0x9cbb04, DarkGreyBlue = 0x29465b, GreenyBrown = 0x696006, LemonGreen = 0xadf802, LightPeriwinkle = 0xc1c6fc, SeaweedGreen = 0x35ad6b, SunshineYellow = 0xfffd37, UglyPurple = 0xa442a0, MediumPink = 0xf36196, PukeBrown = 0x947706, VeryLightPink = 0xfff4f2, Viridian = 0x1e9167, Bile = 0xb5c306, FadedYellow = 0xfeff7f, VeryPaleGreen = 0xcffdbc, VibrantGreen = 0x0add08, BrightLime = 0x87fd05, Spearmint = 0x1ef876, LightAquamarine = 0x7bfdc7, LightSage = 0xbcecac, Yellowgreen = 0xbbf90f, BabyPoo = 0xab9004, DarkSeafoam = 0x1fb57a, DeepTeal = 0x00555a, Heather = 0xa484ac, RustOrange = 0xc45508, DirtyBlue = 0x3f829d, FernGreen = 0x548d44, BrightLilac = 0xc95efb, WeirdGreen = 0x3ae57f, PeacockBlue = 0x016795, AvocadoGreen = 0x87a922, FadedOrange = 0xf0944d, GrapePurple = 0x5d1451, HotGreen = 0x25ff29, LimeYellow = 0xd0fe1d, Mango = 0xffa62b, Shamrock = 0x01b44c, Bubblegum = 0xff6cb5, PurplishBrown = 0x6b4247, VomitYellow = 0xc7c10c, PaleCyan = 0xb7fffa, KeyLime = 0xaeff6e, TomatoRed = 0xec2d01, Lightgreen = 0x76ff7b, Merlot = 0x730039, NightBlue = 0x040348, PurpleishPink = 0xdf4ec8, Apple = 0x6ecb3c, BabyPoopGreen = 0x8f9805, GreenApple = 0x5edc1f, Heliotrope = 0xd94ff5, YellowOrGreen = 0xc8fd3d, AlmostBlack = 0x070d0d, CoolBlue = 0x4984b8, LeafyGreen = 0x51b73b, MustardBrown = 0xac7e04, Dusk = 0x4e5481, DullBrown = 0x876e4b, FrogGreen = 0x58bc08, VividGreen = 0x2fef10, BrightLightGreen = 0x2dfe54, FluroGreen = 0x0aff02, Kiwi = 0x9cef43, Seaweed = 0x18d17b, NavyGreen = 0x35530a, UltramarineBlue = 0x1805db, Iris = 0x6258c4, PastelOrange = 0xff964f, YellowishOrange = 0xffab0f, Perrywinkle = 0x8f8ce7, Tealish = 0x24bca8, DarkPlum = 0x3f012c, Pear = 0xcbf85f, PinkishOrange = 0xff724c, MidnightPurple = 0x280137, LightUrple = 0xb36ff6, DarkMint = 0x48c072, GreenishTan = 0xbccb7a, LightBurgundy = 0xa8415b, TurquoiseBlue = 0x06b1c4, UglyPink = 0xcd7584, Sandy = 0xf1da7a, ElectricPink = 0xff0490, MutedPurple = 0x805b87, MidGreen = 0x50a747, Greyish = 0xa8a495, NeonYellow = 0xcfff04, Banana = 0xffff7e, CarnationPink = 0xff7fa7, Tomato = 0xef4026, Sea = 0x3c9992, MuddyBrown = 0x886806, TurquoiseGreen = 0x04f489, Buff = 0xfef69e, Fawn = 0xcfaf7b, MutedBlue = 0x3b719f, PaleRose = 0xfdc1c5, DarkMintGreen = 0x20c073, Amethyst = 0x9b5fc0, BlueOrGreen = 0x0f9b8e, Chestnut = 0x742802, SickGreen = 0x9db92c, Pea = 0xa4bf20, RustyOrange = 0xcd5909, Stone = 0xada587, RoseRed = 0xbe013c, PaleAqua = 0xb8ffeb, DeepOrange = 0xdc4d01, Earth = 0xa2653e, MossyGreen = 0x638b27, GrassyGreen = 0x419c03, PaleLimeGreen = 0xb1ff65, LightGreyBlue = 0x9dbcd4, PaleGrey = 0xfdfdfe, Asparagus = 0x77ab56, Blueberry = 0x464196, PurpleRed = 0x990147, PaleLime = 0xbefd73, GreenishTeal = 0x32bf84, Caramel = 0xaf6f09, DeepMagenta = 0xa0025c, LightPeach = 0xffd8b1, MilkChocolate = 0x7f4e1e, Ocher = 0xbf9b0c, OffGreen = 0x6ba353, PurplyPink = 0xf075e6, Lightblue = 0x7bc8f6, DuskyBlue = 0x475f94, Golden = 0xf5bf03, LightBeige = 0xfffeb6, ButterYellow = 0xfffd74, DuskyPurple = 0x895b7b, FrenchBlue = 0x436bad, UglyYellow = 0xd0c101, GreenyYellow = 0xc6f808, OrangishRed = 0xf43605, ShamrockGreen = 0x02c14d, OrangishBrown = 0xb25f03, TreeGreen = 0x2a7e19, DeepViolet = 0x490648, Gunmetal = 0x536267, BlueOrPurple = 0x5a06ef, Cherry = 0xcf0234, SandyBrown = 0xc4a661, WarmGrey = 0x978a84, DarkIndigo = 0x1f0954, Midnight = 0x03012d, BlueyGreen = 0x2bb179, GreyPink = 0xc3909b, SoftPurple = 0xa66fb5, Blood = 0x770001, BrownRed = 0x922b05, MediumGrey = 0x7d7f7c, Berry = 0x990f4b, Poo = 0x8f7303, PurpleyPink = 0xc83cb9, LightSalmon = 0xfea993, Snot = 0xacbb0d, EasterPurple = 0xc071fe, LightYellowGreen = 0xccfd7f, DarkNavyBlue = 0x00022e, Drab = 0x828344, LightRose = 0xffc5cb, Rouge = 0xab1239, PurplishRed = 0xb0054b, SlimeGreen = 0x99cc04, BabyPoop = 0x937c00, IrishGreen = 0x019529, PinkOrPurple = 0xef1de7, DarkNavy = 0x000435, GreenyBlue = 0x42b395, LightPlum = 0x9d5783, PinkishGrey = 0xc8aca9, DirtyOrange = 0xc87606, RustRed = 0xaa2704, PaleLilac = 0xe4cbff, OrangeyRed = 0xfa4224, PrimaryBlue = 0x0804f9, KermitGreen = 0x5cb200, BrownishPurple = 0x76424e, MurkyGreen = 0x6c7a0e, Wheat = 0xfbdd7e, VeryDarkPurple = 0x2a0134, BottleGreen = 0x044a05, Watermelon = 0xfd4659, DeepSkyBlue = 0x0d75f8, FireEngineRed = 0xfe0002, YellowOchre = 0xcb9d06, PumpkinOrange = 0xfb7d07, PaleOlive = 0xb9cc81, LightLilac = 0xedc8ff, LightishGreen = 0x61e160, CarolinaBlue = 0x8ab8fe, Mulberry = 0x920a4e, ShockingPink = 0xfe02a2, Auburn = 0x9a3001, BrightLimeGreen = 0x65fe08, Celadon = 0xbefdb7, PinkishBrown = 0xb17261, PooBrown = 0x885f01, BrightSkyBlue = 0x02ccfe, Celery = 0xc1fd95, DirtBrown = 0x836539, Strawberry = 0xfb2943, DarkLime = 0x84b701, Copper = 0xb66325, MediumBrown = 0x7f5112, MutedGreen = 0x5fa052, RobinsEgg = 0x6dedfd, BrightAqua = 0x0bf9ea, BrightLavender = 0xc760ff, Ivory = 0xffffcb, VeryLightPurple = 0xf6cefc, LightNavy = 0x155084, PinkRed = 0xf5054f, OliveBrown = 0x645403, PoopBrown = 0x7a5901, MustardGreen = 0xa8b504, OceanGreen = 0x3d9973, VeryDarkBlue = 0x000133, DustyGreen = 0x76a973, LightNavyBlue = 0x2e5a88, MintyGreen = 0x0bf77d, Adobe = 0xbd6c48, Barney = 0xac1db8, JadeGreen = 0x2baf6a, BrightLightBlue = 0x26f7fd, LightLime = 0xaefd6c, DarkKhaki = 0x9b8f55, OrangeYellow = 0xffad01, Ocre = 0xc69c04, Maize = 0xf4d054, FadedPink = 0xde9dac, BritishRacingGreen = 0x05480d, Sandstone = 0xc9ae74, MudBrown = 0x60460f, LightSeaGreen = 0x98f6b0, RobinEggBlue = 0x8af1fe, AquaMarine = 0x2ee8bb, DarkSeaGreen = 0x11875d, SoftPink = 0xfdb0c0, OrangeyBrown = 0xb16002, CherryRed = 0xf7022a, BurntYellow = 0xd5ab09, BrownishGrey = 0x86775f, Camel = 0xc69f59, PurplishGrey = 0x7a687f, Marine = 0x042e60, GreyishPink = 0xc88d94, PaleTurquoise = 0xa5fbd5, PastelYellow = 0xfffe71, BlueyPurple = 0x6241c7, CanaryYellow = 0xfffe40, FadedRed = 0xd3494e, Sepia = 0x985e2b, Coffee = 0xa6814c, BrightMagenta = 0xff08e8, Mocha = 0x9d7651, Ecru = 0xfeffca, Purpleish = 0x98568d, Cranberry = 0x9e003a, DarkishGreen = 0x287c37, BrownOrange = 0xb96902, DuskyRose = 0xba6873, Melon = 0xff7855, SicklyGreen = 0x94b21c, Silver = 0xc5c9c7, PurplyBlue = 0x661aee, PurpleishBlue = 0x6140ef, HospitalGreen = 0x9be5aa, ShitBrown = 0x7b5804, MidBlue = 0x276ab3, Amber = 0xfeb308, EasterGreen = 0x8cfd7e, SoftBlue = 0x6488ea, CeruleanBlue = 0x056eee, GoldenBrown = 0xb27a01, BrightTurquoise = 0x0ffef9, RedPink = 0xfa2a55, RedPurple = 0x820747, GreyishBrown = 0x7a6a4f, Vermillion = 0xf4320c, Russet = 0xa13905, SteelGrey = 0x6f828a, LighterPurple = 0xa55af4, BrightViolet = 0xad0afd, PrussianBlue = 0x004577, SlateGreen = 0x658d6d, DirtyPink = 0xca7b80, DarkBlueGreen = 0x005249, Pine = 0x2b5d34, YellowyGreen = 0xbff128, DarkGold = 0xb59410, Bluish = 0x2976bb, DarkishBlue = 0x014182, DullRed = 0xbb3f3f, PinkyRed = 0xfc2647, Bronze = 0xa87900, PaleTeal = 0x82cbb2, MilitaryGreen = 0x667c3e, BarbiePink = 0xfe46a5, BubblegumPink = 0xfe83cc, PeaSoupGreen = 0x94a617, DarkMustard = 0xa88905, Shit = 0x7f5f00, MediumPurple = 0x9e43a2, VeryDarkGreen = 0x062e03, Dirt = 0x8a6e45, DuskyPink = 0xcc7a8b, RedViolet = 0x9e0168, LemonYellow = 0xfdff38, Pistachio = 0xc0fa8b, DullYellow = 0xeedc5b, DarkLimeGreen = 0x7ebd01, DenimBlue = 0x3b5b92, TealBlue = 0x01889f, LightishBlue = 0x3d7afd, PurpleyBlue = 0x5f34e7, LightIndigo = 0x6d5acf, SwampGreen = 0x748500, BrownGreen = 0x706c11, DarkMaroon = 0x3c0008, HotPurple = 0xcb00f5, DarkForestGreen = 0x002d04, FadedBlue = 0x658cbb, DrabGreen = 0x749551, LightLimeGreen = 0xb9ff66, SnotGreen = 0x9dc100, Yellowish = 0xfaee66, LightBlueGreen = 0x7efbb3, Bordeaux = 0x7b002c, LightMauve = 0xc292a1, Ocean = 0x017b92, Marigold = 0xfcc006, MuddyGreen = 0x657432, DullOrange = 0xd8863b, Steel = 0x738595, ElectricPurple = 0xaa23ff, FluorescentGreen = 0x08ff08, YellowishBrown = 0x9b7a01, Blush = 0xf29e8e, SoftGreen = 0x6fc276, BrightOrange = 0xff5b00, Lemon = 0xfdff52, PurpleGrey = 0x866f85, AcidGreen = 0x8ffe09, PaleLavender = 0xeecffe, VioletBlue = 0x510ac9, LightForestGreen = 0x4f9153, BurntRed = 0x9f2305, KhakiGreen = 0x728639, Cerise = 0xde0c62, FadedPurple = 0x916e99, Apricot = 0xffb16d, DarkOliveGreen = 0x3c4d03, GreyBrown = 0x7f7053, GreenGrey = 0x77926f, TrueBlue = 0x010fcc, PaleViolet = 0xceaefa, PeriwinkleBlue = 0x8f99fb, LightSkyBlue = 0xc6fcff, Blurple = 0x5539cc, GreenBrown = 0x544e03, Bluegreen = 0x017a79, BrightTeal = 0x01f9c6, BrownishYellow = 0xc9b003, PeaSoup = 0x929901, Forest = 0x0b5509, BarneyPurple = 0xa00498, Ultramarine = 0x2000b1, Purplish = 0x94568c, PukeYellow = 0xc2be0e, BluishGrey = 0x748b97, DarkPeriwinkle = 0x665fd1, DarkLilac = 0x9c6da5, Reddish = 0xc44240, LightMaroon = 0xa24857, DustyPurple = 0x825f87, TerraCotta = 0xc9643b, Avocado = 0x90b134, MarineBlue = 0x01386a, TealGreen = 0x25a36f, SlateGrey = 0x59656d, LighterGreen = 0x75fd63, ElectricGreen = 0x21fc0d, DustyBlue = 0x5a86ad, GoldenYellow = 0xfec615, BrightYellow = 0xfffd01, LightLavender = 0xdfc5fe, Umber = 0xb26400, Poop = 0x7f5e00, DarkPeach = 0xde7e5d, JungleGreen = 0x048243, Eggshell = 0xffffd4, Denim = 0x3b638c, YellowBrown = 0xb79400, DullPurple = 0x84597e, ChocolateBrown = 0x411900, WineRed = 0x7b0323, NeonBlue = 0x04d9ff, DirtyGreen = 0x667e2c, LightTan = 0xfbeeac, IceBlue = 0xd7fffe, CadetBlue = 0x4e7496, DarkMauve = 0x874c62, VeryLightBlue = 0xd5ffff, GreyPurple = 0x826d8c, PastelPink = 0xffbacd, VeryLightGreen = 0xd1ffbd, DarkSkyBlue = 0x448ee4, Evergreen = 0x05472a, DullPink = 0xd5869d, Aubergine = 0x3d0734, Mahogany = 0x4a0100, ReddishOrange = 0xf8481c, DeepGreen = 0x02590f, VomitGreen = 0x89a203, PurplePink = 0xe03fd8, DustyPink = 0xd58a94, FadedGreen = 0x7bb274, CamoGreen = 0x526525, PinkyPurple = 0xc94cbe, PinkPurple = 0xdb4bda, BrownishRed = 0x9e3623, DarkRose = 0xb5485d, Mud = 0x735c12, Brownish = 0x9c6d57, EmeraldGreen = 0x028f1e, PaleBrown = 0xb1916e, DullBlue = 0x49759c, BurntUmber = 0xa0450e, MediumGreen = 0x39ad48, Clay = 0xb66a50, LightAqua = 0x8cffdb, LightOliveGreen = 0xa4be5c, BrownishOrange = 0xcb7723, DarkAqua = 0x05696b, PurplishPink = 0xce5dae, DarkSalmon = 0xc85a53, GreenishGrey = 0x96ae8d, Jade = 0x1fa774, UglyGreen = 0x7a9703, DarkBeige = 0xac9362, Emerald = 0x01a049, PaleRed = 0xd9544d, LightMagenta = 0xfa5ff7, Sky = 0x82cafc, LightCyan = 0xacfffc, YellowOrange = 0xfcb001, ReddishPurple = 0x910951, ReddishPink = 0xfe2c54, Orchid = 0xc875c4, DirtyYellow = 0xcdc50a, OrangeRed = 0xfd411e, DeepRed = 0x9a0200, OrangeBrown = 0xbe6400, CobaltBlue = 0x030aa7, NeonPink = 0xfe019a, RosePink = 0xf7879a, GreyishPurple = 0x887191, Raspberry = 0xb00149, AquaGreen = 0x12e193, SalmonPink = 0xfe7b7c, Tangerine = 0xff9408, BrownishGreen = 0x6a6e09, RedBrown = 0x8b2e16, GreenishBrown = 0x696112, Pumpkin = 0xe17701, PineGreen = 0x0a481e, Charcoal = 0x343837, BabyPink = 0xffb7ce, Cornflower = 0x6a79f7, BlueViolet = 0x5d06e9, Chocolate = 0x3d1c02, GreyishGreen = 0x82a67d, Scarlet = 0xbe0119, GreenYellow = 0xc9ff27, DarkOlive = 0x373e02, Sienna = 0xa9561e, PastelPurple = 0xcaa0ff, Terracotta = 0xca6641, AquaBlue = 0x02d8e9, SageGreen = 0x88b378, BloodRed = 0x980002, DeepPink = 0xcb0162, Grass = 0x5cac2d, Moss = 0x769958, PastelBlue = 0xa2bffe, BluishGreen = 0x10a674, GreenBlue = 0x06b48b, DarkTan = 0xaf884a, GreenishBlue = 0x0b8b87, PaleOrange = 0xffa756, Vomit = 0xa2a415, ForrestGreen = 0x154406, DarkLavender = 0x856798, DarkViolet = 0x34013f, PurpleBlue = 0x632de9, DarkCyan = 0x0a888a, OliveDrab = 0x6f7632, Pinkish = 0xd46a7e, Cobalt = 0x1e488f, NeonPurple = 0xbc13fe, LightTurquoise = 0x7ef4cc, AppleGreen = 0x76cd26, DullGreen = 0x74a662, Wine = 0x80013f, PowderBlue = 0xb1d1fc, OffWhite = 0xffffe4, ElectricBlue = 0x0652ff, DarkTurquoise = 0x045c5a, BluePurple = 0x5729ce, Azure = 0x069af3, BrightRed = 0xff000d, PinkishRed = 0xf10c45, CornflowerBlue = 0x5170d7, LightOlive = 0xacbf69, Grape = 0x6c3461, GreyishBlue = 0x5e819d, PurplishBlue = 0x601ef9, YellowishGreen = 0xb0dd16, GreenishYellow = 0xcdfd02, MediumBlue = 0x2c6fbb, DustyRose = 0xc0737a, LightViolet = 0xd6b4fc, MidnightBlue = 0x020035, BluishPurple = 0x703be7, RedOrange = 0xfd3c06, DarkMagenta = 0x960056, Greenish = 0x40a368, OceanBlue = 0x03719c, Coral = 0xfc5a50, Cream = 0xffffc2, ReddishBrown = 0x7f2b0a, BurntSienna = 0xb04e0f, Brick = 0xa03623, Sage = 0x87ae73, GreyGreen = 0x789b73, White = 0xffffff, RobinsEggBlue = 0x98eff9, MossGreen = 0x658b38, SteelBlue = 0x5a7d9a, Eggplant = 0x380835, LightYellow = 0xfffe7a, LeafGreen = 0x5ca904, LightGrey = 0xd8dcd6, Puke = 0xa5a502, PinkishPurple = 0xd648d7, SeaBlue = 0x047495, PalePurple = 0xb790d4, SlateBlue = 0x5b7c99, BlueGrey = 0x607c8e, HunterGreen = 0x0b4008, Fuchsia = 0xed0dd9, Crimson = 0x8c000f, PaleYellow = 0xffff84, Ochre = 0xbf9005, MustardYellow = 0xd2bd0a, LightRed = 0xff474c, Cerulean = 0x0485d1, PalePink = 0xffcfdc, DeepBlue = 0x040273, Rust = 0xa83c09, LightTeal = 0x90e4c1, Slate = 0x516572, Goldenrod = 0xfac205, DarkYellow = 0xd5b60a, DarkGrey = 0x363737, ArmyGreen = 0x4b5d16, GreyBlue = 0x6b8ba4, Seafoam = 0x80f9ad, Puce = 0xa57e52, SpringGreen = 0xa9f971, DarkOrange = 0xc65102, Sand = 0xe2ca76, PastelGreen = 0xb0ff9d, Mint = 0x9ffeb0, LightOrange = 0xfdaa48, BrightPink = 0xfe01b1, Chartreuse = 0xc1f80a, DeepPurple = 0x36013f, DarkBrown = 0x341c02, Taupe = 0xb9a281, PeaGreen = 0x8eab12, PukeGreen = 0x9aae07, KellyGreen = 0x02ab2e, SeafoamGreen = 0x7af9ab, BlueGreen = 0x137e6d, Khaki = 0xaaa662, Burgundy = 0x610023, DarkTeal = 0x014d4e, BrickRed = 0x8f1402, RoyalPurple = 0x4b006e, Plum = 0x580f41, MintGreen = 0x8fff9f, Gold = 0xdbb40c, BabyBlue = 0xa2cffe, YellowGreen = 0xc0fb2d, BrightPurple = 0xbe03fd, DarkRed = 0x840000, PaleBlue = 0xd0fefe, GrassGreen = 0x3f9b0b, Navy = 0x01153e, Aquamarine = 0x04d8b2, BurntOrange = 0xc04e01, NeonGreen = 0x0cff0c, BrightBlue = 0x0165fc, Rose = 0xcf6275, LightPink = 0xffd1df, Mustard = 0xceb301, Indigo = 0x380282, Lime = 0xaaff32, SeaGreen = 0x53fca1, Periwinkle = 0x8e82fe, DarkPink = 0xcb416b, OliveGreen = 0x677a04, Peach = 0xffb07c, PaleGreen = 0xc7fdb5, LightBrown = 0xad8150, HotPink = 0xff028d, Black = 0x000000, Lilac = 0xcea2fd, NavyBlue = 0x001146, RoyalBlue = 0x0504aa, Beige = 0xe6daa6, Salmon = 0xff796c, Olive = 0x6e750e, Maroon = 0x650021, BrightGreen = 0x01ff07, DarkPurple = 0x35063e, Mauve = 0xae7181, ForestGreen = 0x06470c, Aqua = 0x13eac9, Cyan = 0x00ffff, Tan = 0xd1b26f, DarkBlue = 0x00035b, Lavender = 0xc79fef, Turquoise = 0x06c2ac, DarkGreen = 0x033500, Violet = 0x9a0eea, LightPurple = 0xbf77f6, LimeGreen = 0x89fe05, Grey = 0x929591, SkyBlue = 0x75bbfd, Yellow = 0xffff14, Magenta = 0xc20078, LightGreen = 0x96f97b, Orange = 0xf97306, Teal = 0x029386, LightBlue = 0x95d0fc, Red = 0xe50000, Brown = 0x653700, Pink = 0xff81c0, Blue = 0x0343df, Green = 0x15b01a, Purple = 0x7e1e9c } public static class ColorExtensions { public static byte Red(this Color color) { return (byte)((uint)color >> 16); } public static byte Green(this Color color) { return unchecked((byte)((uint)color >> 8)); } public static byte Blue(this Color color) { return unchecked((byte)color); } } }[/csharp]
Thats a lot of colors. My application consists of like 3 shades of grey, 2 blue, and 1 orange.
[QUOTE=Karmah;47700410]Thats a lot of colors. My application consists of like 50 shades of grey, 2 blue, and 1 orange.[/QUOTE] tsk tsk
[QUOTE=Karmah;47700410]Thats a lot of colors. My application consists of like 3 shades of grey, 2 blue, and 1 orange.[/QUOTE] [URL="http://xkcd.com/color/rgb/"]Here's the matching colour overview (but it's apparently only mostly the same according to the text at the bottom).[/URL] It's interesting that blue isn't monitor-blue. (It does seem bluer to me than most blues on the web.) The full result overview is at [url]http://blog.xkcd.com/2010/05/03/color-survey-results/[/url], in case you haven't seen the survey yet.
Another fun project I'm doing on the side: [img]http://i.imgur.com/fYInaND.png[/img] The finished product is formatted in Markdown. [URL="https://github.com/TheBerkin/best-of-rant/blob/master/constitution.rant"]Here's the source[/URL] if you're into that sort of thing.
Just finished improving the Vector implementation in my fork of grid, and added 3d vectors, because why not. It's a 2d engine. It needs 3d vectors right? Anyways, anyone got any good papers/sources on quarternions?
[QUOTE=Berkin;47700616]Another fun project I'm doing on the side: [img]http://i.imgur.com/fYInaND.png[/img] The finished product is formatted in Markdown. [URL="https://github.com/TheBerkin/best-of-rant/blob/master/constitution.rant"]Here's the source[/URL] if you're into that sort of thing.[/QUOTE] [Img]http://i264.photobucket.com/albums/ii171/bafflegabber/queen_fragg.jpg[/img]
And there it is. [code]main :: IO () main = do startHost form <- newForm button <- newButton addChildControl form button backColor button #= color 255 0 0 255[/code] [img]http://i.imgur.com/0NPCINT.png[/img]
[QUOTE=Darwin226;47701098]And there it is. [code]main :: IO () main = do startHost form <- newForm button <- newButton addChildControl form button backColor button #= color 255 0 0 255[/code] [img]http://i.imgur.com/0NPCINT.png[/img][/QUOTE] I see potential for a multiplayer version of the Windows Forms Designer interface.
Weird bug, when trying to make enemies to behave. [video=youtube;ZEc8H9l7Acg]http://www.youtube.com/watch?v=ZEc8H9l7Acg[/video]
[QUOTE=polkm;47701607]Weird bug, when trying to be enemies to behave. [video=youtube;ZEc8H9l7Acg]http://www.youtube.com/watch?v=ZEc8H9l7Acg[/video][/QUOTE] They just want to love you.
Any of you have VS 2015 Preview installed with your licence expiring in a few days? What can I do about that?
[QUOTE=Darwin226;47701641]Any of you have VS 2015 Preview installed with your licence expiring in a few days? What can I do about that?[/QUOTE] Install VS 2015 RC. The license is valid for the next ~6 months.
[QUOTE=Simspelaaja;47701698]Install VS 2015 RC. The license is valid for the next ~6 months.[/QUOTE] Is there a way to just upgrade? Or do I really have to reinstall (and redownload) everything.?
working on a LOVE ui thing [vid]https://a.pomf.se/hayjru.mp4[/vid]
what the fuck [t]http://i.imgur.com/OMX3PVD.png[/t]
[QUOTE=Amiga OS;47701634]Will this run on my 286?[/QUOTE] Any chance you've got a floating point co-processor? Otherwise I could convert it to fixed-point.
[QUOTE=Amiga OS;47702238]Afraid not, I've only got a 256k RAM expansion. Its running with an IBM MDA screen card too, so you only get the IBM extended ascii characterset.[/QUOTE] Hm. That's a fun challenge. [editline]lols[/editline] PM'd you a test copy.
[QUOTE=Darwin226;47701728]Is there a way to just upgrade? Or do I really have to reinstall (and redownload) everything.?[/QUOTE] You have to do a full reinstall, unfortunately.
[img]http://i.imgur.com/vvxsKJg.png[/img] Is it okay that I'm posting too much about this? If it gets boring/spammy please do tell.
[QUOTE=JohnnyOnFlame;47702379][img]http://i.imgur.com/vvxsKJg.png[/img] Is it okay that I'm posting too much about this? If it gets boring/spammy please do tell.[/QUOTE] There's no such thing as too much content.
I've yet to see anyone spam development content on WAYWO in the last n-years, or I don't remember it.
[QUOTE=NicDasomeone;47700746]Just finished improving the Vector implementation in my fork of grid, and added 3d vectors, because why not. It's a 2d engine. It needs 3d vectors right? Anyways, anyone got any good papers/sources on quarternions?[/QUOTE] [URL="http://www.iquilezles.org/www/articles/quaternions/quaternions.htm"]There isn't really much to say about them.[/URL] You can uniformly scale things by multiplying the quaternion with the root of the scale. You can also apply some kind of skewed distortion by manipulating the imaginary components. I'm pretty sure you can't non-uniformly scale a vector using a quaternion though. That aside: Since it's a 2D engine it would make sense to also have complex numbers with (roughly) the same interface as quaternions. The difference is that in that case you can reduce the number of calculations by letting them contain the full rotation and/or uniform scale though, which is the usual use case.
[QUOTE=Tamschi;47702571][URL="http://www.iquilezles.org/www/articles/quaternions/quaternions.htm"]There isn't really much to say about them.[/URL] You can uniformly scale things by multiplying the quaternion with the root of the scale. You can also apply some kind of skewed distortion by manipulating the imaginary components. I'm pretty sure you can't non-uniformly scale a vector using a quaternion though. That aside: Since it's a 2D engine it would make sense to also have complex numbers with (roughly) the same interface as quaternions. The difference is that in that case you can reduce the number of calculations by letting them contain the full rotation and/or uniform scale though, which is the usual use case.[/QUOTE] Awesome, cheers! Was more thinking whether nor not there were some nifty features beyond rotation, similar to vector product and their scalar product, but I think your link actually mentions a few things!
Sorry, you need to Log In to post a reply to this thread.