{"id":13396407,"url":"https://github.com/manolovn/trianglify","last_synced_at":"2026-01-16T06:52:20.819Z","repository":{"id":57726434,"uuid":"49221989","full_name":"manolovn/trianglify","owner":"manolovn","description":"Android view inspired by http://qrohlf.com/trianglify/","archived":false,"fork":false,"pushed_at":"2018-02-17T11:06:01.000Z","size":458,"stargazers_count":458,"open_issues_count":3,"forks_count":51,"subscribers_count":14,"default_branch":"master","last_synced_at":"2024-07-31T18:17:26.686Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/manolovn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-01-07T18:18:43.000Z","updated_at":"2024-05-27T21:01:01.000Z","dependencies_parsed_at":"2022-09-26T21:50:48.056Z","dependency_job_id":null,"html_url":"https://github.com/manolovn/trianglify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manolovn%2Ftrianglify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manolovn%2Ftrianglify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manolovn%2Ftrianglify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/manolovn%2Ftrianglify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/manolovn","download_url":"https://codeload.github.com/manolovn/trianglify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221421537,"owners_count":16817822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T18:00:50.322Z","updated_at":"2026-01-16T06:52:20.793Z","avatar_url":"https://github.com/manolovn.png","language":"Java","funding_links":[],"categories":["Index `(light-weight pages)`","Index"],"sub_categories":[],"readme":"# Trianglify\n[![Build Status](https://travis-ci.org/manolovn/trianglify.svg?branch=master)](https://travis-ci.org/manolovn/trianglify)\n[![Maven Central](https://img.shields.io/maven-central/v/com.manolovn/trianglify.svg)](https://maven-badges.herokuapp.com/maven-central/com.manolovn/trianglify)\n[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-Trianglify-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/3014)\n\nAndroid view inspired by http://qrohlf.com/trianglify/ \n\n\u003cimg src=\"./art/001.png \" alt=\"Demo Screenshot\" width=\"250\" /\u003e\n\n# Usage\n\nAdd the dependency\n\n```groovy\ndependencies {\n    compile 'com.manolovn:trianglify:1.1.0'\n}\n```\n\nJust add the view to your layout:\n\n```xml\n\u003ccom.manolovn.trianglify.TrianglifyView\n            android:id=\"@+id/trianglify_view_sample\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"/\u003e\n```\n\nCell size, variance, bleeds, color generator and point generator can be initialized from layout:\n\n```xml\n\u003ccom.manolovn.trianglify.TrianglifyView\n            android:id=\"@+id/trianglify_view_sample\"\n            android:layout_width=\"match_parent\"\n            android:layout_height=\"match_parent\"\n            trianglify:cellSize=\"175\"\n            trianglify:variance=\"75\"\n            trianglify:bleedX=\"50\"\n            trianglify:bleedY=\"50\"\n            trianglify:colorGenerator=\"com.sample.color.MyCoolColorGenerator\"\n            trianglify:pointGenerator=\"com.sample.color.MyCoolPointGenerator\"/\u003e\n```\n\nor using setters (see sample for more info):\n\n```java\ntrianglifyView.getDrawable().setCellSize(175);\ntrianglifyView.getDrawable().setVariance(75);\ntrianglifyView.getDrawable().setColorGenerator(new AnyColorGenerator());\ntrianglifyView.getDrawable().setPointGenerator(new AnyPointGenerator());\n```\n\nIn the sample, you can find an example of ColorGenerator and an example of how to use differents types of PointGenerator. In the component are included two: RegularPointGenerator (for a grid distribution) and CircularPointGenerator (for a concentric circles distribution).\n\n# License\n\n    Copyright 2015 Manuel Vera Nieto\n\n    Licensed under the Apache License, Version 2.0 (the \"License\");\n    you may not use this file except in compliance with the License.\n    You may obtain a copy of the License at\n\n       http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS,\n    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n    See the License for the specific language governing permissions and\n    limitations under the License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanolovn%2Ftrianglify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanolovn%2Ftrianglify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanolovn%2Ftrianglify/lists"}