diff --git a/src/main/kotlin/dev/thunderid/android/logo/AvatarContentDeriver.kt b/src/main/kotlin/dev/thunderid/android/logo/AvatarContentDeriver.kt index c56df82..c15f735 100644 --- a/src/main/kotlin/dev/thunderid/android/logo/AvatarContentDeriver.kt +++ b/src/main/kotlin/dev/thunderid/android/logo/AvatarContentDeriver.kt @@ -37,7 +37,7 @@ internal object AvatarContentDeriver { private val ANONYMOUS_ANIMAL_NAMES: List = LogoIconRegistry.ANONYMOUS_ANIMAL_ICONS.keys.sorted() /** - * The 33 curated `anonymous_entity` keys, sorted, so a given seed always hashes to the same + * The 36 curated `anonymous_entity` keys, sorted, so a given seed always hashes to the same * index regardless of map iteration order. */ private val ANONYMOUS_ENTITY_NAMES: List = LogoIconRegistry.ANONYMOUS_ENTITY_ICONS.keys.sorted() diff --git a/src/main/kotlin/dev/thunderid/android/logo/LogoIconRegistry.kt b/src/main/kotlin/dev/thunderid/android/logo/LogoIconRegistry.kt index 8313594..87a1a82 100644 --- a/src/main/kotlin/dev/thunderid/android/logo/LogoIconRegistry.kt +++ b/src/main/kotlin/dev/thunderid/android/logo/LogoIconRegistry.kt @@ -86,6 +86,9 @@ internal object LogoIconRegistry { "circuit_node" to R.drawable.logo_icon_entity_circuit_node, "antenna" to R.drawable.logo_icon_entity_antenna, "valve" to R.drawable.logo_icon_entity_valve, + "bot_head" to R.drawable.logo_icon_entity_bot_head, + "brain" to R.drawable.logo_icon_entity_brain, + "neural_net" to R.drawable.logo_icon_entity_neural_net, ) @DrawableRes diff --git a/src/main/res/drawable-mdpi/logo_icon_entity_bot_head.png b/src/main/res/drawable-mdpi/logo_icon_entity_bot_head.png new file mode 100644 index 0000000..17c228e Binary files /dev/null and b/src/main/res/drawable-mdpi/logo_icon_entity_bot_head.png differ diff --git a/src/main/res/drawable-mdpi/logo_icon_entity_brain.png b/src/main/res/drawable-mdpi/logo_icon_entity_brain.png new file mode 100644 index 0000000..0ade851 Binary files /dev/null and b/src/main/res/drawable-mdpi/logo_icon_entity_brain.png differ diff --git a/src/main/res/drawable-mdpi/logo_icon_entity_neural_net.png b/src/main/res/drawable-mdpi/logo_icon_entity_neural_net.png new file mode 100644 index 0000000..476afde Binary files /dev/null and b/src/main/res/drawable-mdpi/logo_icon_entity_neural_net.png differ diff --git a/src/main/res/drawable-xhdpi/logo_icon_entity_bot_head.png b/src/main/res/drawable-xhdpi/logo_icon_entity_bot_head.png new file mode 100644 index 0000000..00fa623 Binary files /dev/null and b/src/main/res/drawable-xhdpi/logo_icon_entity_bot_head.png differ diff --git a/src/main/res/drawable-xhdpi/logo_icon_entity_brain.png b/src/main/res/drawable-xhdpi/logo_icon_entity_brain.png new file mode 100644 index 0000000..2609dc1 Binary files /dev/null and b/src/main/res/drawable-xhdpi/logo_icon_entity_brain.png differ diff --git a/src/main/res/drawable-xhdpi/logo_icon_entity_neural_net.png b/src/main/res/drawable-xhdpi/logo_icon_entity_neural_net.png new file mode 100644 index 0000000..5817f6a Binary files /dev/null and b/src/main/res/drawable-xhdpi/logo_icon_entity_neural_net.png differ diff --git a/src/main/res/drawable-xxhdpi/logo_icon_entity_bot_head.png b/src/main/res/drawable-xxhdpi/logo_icon_entity_bot_head.png new file mode 100644 index 0000000..dfa1f83 Binary files /dev/null and b/src/main/res/drawable-xxhdpi/logo_icon_entity_bot_head.png differ diff --git a/src/main/res/drawable-xxhdpi/logo_icon_entity_brain.png b/src/main/res/drawable-xxhdpi/logo_icon_entity_brain.png new file mode 100644 index 0000000..ccc7883 Binary files /dev/null and b/src/main/res/drawable-xxhdpi/logo_icon_entity_brain.png differ diff --git a/src/main/res/drawable-xxhdpi/logo_icon_entity_neural_net.png b/src/main/res/drawable-xxhdpi/logo_icon_entity_neural_net.png new file mode 100644 index 0000000..190b85d Binary files /dev/null and b/src/main/res/drawable-xxhdpi/logo_icon_entity_neural_net.png differ diff --git a/src/test/kotlin/dev/thunderid/android/logo/AvatarContentDeriverTest.kt b/src/test/kotlin/dev/thunderid/android/logo/AvatarContentDeriverTest.kt index 595b92c..4fe9a00 100644 --- a/src/test/kotlin/dev/thunderid/android/logo/AvatarContentDeriverTest.kt +++ b/src/test/kotlin/dev/thunderid/android/logo/AvatarContentDeriverTest.kt @@ -56,9 +56,9 @@ class AvatarContentDeriverTest { @Test fun `derives a deterministic anonymous_entity key from the seed`() { - // hashStr("Fox") == 70831 (see AvatarMathTest); 70831 mod 33 == 13, "key" in the sorted - // 33-name list. - assertEquals("key", AvatarContentDeriver.derive("Fox", AvatarVariant.ANONYMOUS_ENTITY)) + // hashStr("Fox") == 70831 (see AvatarMathTest); 70831 mod 36 == 19, "obelisk" in the sorted + // 36-name list. + assertEquals("obelisk", AvatarContentDeriver.derive("Fox", AvatarVariant.ANONYMOUS_ENTITY)) assertEquals( AvatarContentDeriver.derive("Fox", AvatarVariant.ANONYMOUS_ENTITY), AvatarContentDeriver.derive("Fox", AvatarVariant.ANONYMOUS_ENTITY),