{"id":13345,"date":"2022-10-03T19:44:02","date_gmt":"2022-10-03T14:14:02","guid":{"rendered":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/"},"modified":"2022-10-03T19:44:02","modified_gmt":"2022-10-03T14:14:02","slug":"solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically","status":"publish","type":"post","link":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/","title":{"rendered":"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically?"},"content":{"rendered":"<p> [ad_1]<br \/>\n<\/p>\n<div id=\"answer-24717165\" class=\"answer js-answer accepted-answer js-accepted-answer\" data-answerid=\"24717165\" data-parentid=\"24716129\" data-score=\"3\" data-position-on-page=\"1\" data-highest-scored=\"1\" data-question-has-accepted-highest-score=\"1\" itemprop=\"acceptedAnswer\" itemscope itemtype=\"https:\/\/schema.org\/Answer\">\n<div class=\"post-layout\">\n<div class=\"votecell post-layout--left\"><\/div>\n<div class=\"answercell post-layout--right\">\n<div class=\"s-prose js-post-body\" itemprop=\"text\">\n<p>Your current approach is indeed not easily generalizable. The hard-coded parts of the buttons for &#8220;blue&#8221; and &#8220;green&#8221;, and especially the special methods like <code>blueToGreen<\/code> make it impossible to extend the number of colors with reasonable effort. (You don&#8217;t want to create methods <code>blueToYellow<\/code>, <code>blueToRed<\/code>, <code>blueToTheThirdColorFromThisListForWhichIDontKnowAName<\/code> &#8230;).<\/p>\n<p>There are many possible ways of generalizing this. You did not say much about the intended structure and responsibilities. But you should at least create a method that can interpolate between two arbitrary colors with a given number of steps. In the code snippet below, this is done in the \u00b4createColorsArrayArgb` method, which creates an array of ARGB colors from an arbitrary sequence of colors (I needed this recently). But you can probably boil it down to 2 colors, if you want to. <\/p>\n<pre><code>import java.awt.Color;\nimport java.awt.Dimension;\nimport java.awt.Graphics;\nimport java.awt.event.ActionEvent;\nimport java.awt.event.ActionListener;\nimport java.util.ArrayList;\nimport java.util.List;\n\nimport javax.swing.JButton;\nimport javax.swing.JFrame;\nimport javax.swing.JPanel;\nimport javax.swing.SwingUtilities;\nimport javax.swing.Timer;\n\npublic class ChangeColor\n{\n    public static void main(String[] args)\n    {\n        SwingUtilities.invokeLater(new Runnable()\n        {\n            @Override\n            public void run()\n            {\n                new ChangeColor();\n            }\n        });\n    }\n\n    public ChangeColor()\n    {\n        JFrame frame = new JFrame();\n\n        ColorPanel colorPanel = new ColorPanel(Color.BLUE);\n        ColorInterpolator ci = new ColorInterpolator(colorPanel, Color.BLUE);\n\n        colorPanel.addColorButton(createButton(\"Blue\", Color.BLUE, ci));\n        colorPanel.addColorButton(createButton(\"Green\", Color.GREEN, ci));\n        colorPanel.addColorButton(createButton(\"Red\", Color.RED, ci));\n        colorPanel.addColorButton(createButton(\"Cyan\", Color.CYAN, ci));\n        colorPanel.addColorButton(createButton(\"Yellow\", Color.YELLOW, ci));\n        colorPanel.addColorButton(createButton(\"Magenta\", Color.MAGENTA, ci));\n\n        frame.add(colorPanel);\n        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n        frame.pack();\n        frame.setLocationRelativeTo(null);\n        frame.setVisible(true);\n    }\n\n    private static JButton createButton(String name, final Color color, \n        final ColorInterpolator colorInterpolator)\n    {\n        JButton button = new JButton(name);\n        button.addActionListener(new ActionListener()\n        {\n            @Override\n            public void actionPerformed(ActionEvent e)\n            {\n                colorInterpolator.interpolateTo(color);\n            }\n        });\n        return button;\n    }\n\n\n    \/**\n     * Creates an array with the given number of elements, that contains the\n     * ARGB representations of colors that are linearly interpolated between the\n     * given colors\n     * \n     * @param steps The number of steps (the size of the resulting array)\n     * @param colors The colors to interpolate between\n     * @return The array with ARGB colors\n     *\/\n    static int[] createColorsArrayArgb(int steps, Color... colors)\n    {\n        int result[] = new int[steps];\n        double normalizing = 1.0 \/ (steps - 1);\n        int numSegments = colors.length - 1;\n        double segmentSize = 1.0 \/ (colors.length - 1);\n        for (int i = 0; i &lt; steps; i++)\n        {\n            double relative = i * normalizing;\n            int i0 = Math.min(numSegments, (int) (relative * numSegments));\n            int i1 = Math.min(numSegments, i0 + 1);\n            double local = (relative - i0 * segmentSize) * numSegments;\n\n            Color c0 = colors[i0];\n            int r0 = c0.getRed();\n            int g0 = c0.getGreen();\n            int b0 = c0.getBlue();\n\n            Color c1 = colors[i1];\n            int r1 = c1.getRed();\n            int g1 = c1.getGreen();\n            int b1 = c1.getBlue();\n\n            int dr = r1 - r0;\n            int dg = g1 - g0;\n            int db = b1 - b0;\n\n            int r = (int) (r0 + local * dr);\n            int g = (int) (g0 + local * dg);\n            int b = (int) (b0 + local * db);\n            int argb = (0xFF &lt;&lt; 24) | (r &lt;&lt; 16) | (g &lt;&lt; 8) | (b &lt;&lt; 0);\n            result[i] = argb;\n        }\n        return result;\n    }\n}\n\nclass ColorInterpolator\n{\n    private static final int DELAY = 20;\n\n    private Color currentColor;\n    private int currentIndex = 0;\n    private int currentColorsArgb[];\n    private final Timer timer;\n    private final ColorPanel colorPanel;\n\n    ColorInterpolator(final ColorPanel colorPanel, Color initialColor)\n    {\n        this.colorPanel = colorPanel;\n\n        currentColor = initialColor;\n        currentColorsArgb = new int[]{ initialColor.getRGB() };\n        timer = new Timer(DELAY, new ActionListener()\n        {\n            @Override\n            public void actionPerformed(ActionEvent e)\n            {\n                currentIndex++;\n                if (currentIndex &gt;= currentColorsArgb.length-1)\n                {\n                    timer.stop();\n                    colorPanel.enableButtons();\n                }\n                else\n                {\n                    int argb = currentColorsArgb[currentIndex];\n                    currentColor = new Color(argb);\n                    colorPanel.setColor(currentColor);\n                }\n            }\n        });\n    }\n\n    void interpolateTo(Color targetColor)\n    {\n        colorPanel.diableButtons();\n        currentColorsArgb = ChangeColor.createColorsArrayArgb(\n            40, currentColor, targetColor);\n        currentIndex = 0;\n        timer.start();\n    }\n}\n\n\nclass ColorPanel extends JPanel\n{\n    private Color currentColor;\n    private List&lt;JButton&gt; buttons;\n\n    public ColorPanel(Color initialColor)\n    {\n        currentColor = initialColor;\n        buttons = new ArrayList&lt;JButton&gt;();\n    }\n\n    void addColorButton(JButton button)\n    {\n        buttons.add(button);\n        add(button);\n    }\n\n    public void diableButtons()\n    {\n        for (JButton button : buttons)\n        {\n            button.setEnabled(false);\n        }\n    }\n\n    public void enableButtons()\n    {\n        for (JButton button : buttons)\n        {\n            button.setEnabled(true);\n        }\n    }\n\n    public void setColor(Color color)\n    {\n        currentColor = color;\n        repaint();\n    }\n\n    @Override\n    protected void paintComponent(Graphics g)\n    {\n        super.paintComponent(g);\n        g.setColor(currentColor);\n        g.fillRect(0, 0, getWidth(), getHeight());\n    }\n\n    @Override\n    public Dimension getPreferredSize()\n    {\n        return new Dimension(600, 300);\n    }\n}\n<\/code><\/pre>\n<\/p><\/div>\n<div class=\"mt24\"><\/div>\n<\/div>\n<p>            <span class=\"d-none\" itemprop=\"commentCount\">0<\/span> <\/p><\/div>\n<\/div>\n<p>[ad_2]<\/p>\n<p>solved How to know what r,g,b values to use for get other colours to paint a JFrame dynamically? <\/p>\n","protected":false},"excerpt":{"rendered":"<p>[ad_1] Your current approach is indeed not easily generalizable. The hard-coded parts of the buttons for &#8220;blue&#8221; and &#8220;green&#8221;, and especially the special methods like blueToGreen make it impossible to extend the number of colors with reasonable effort. (You don&#8217;t want to create methods blueToYellow, blueToRed, blueToTheThirdColorFromThisListForWhichIDontKnowAName &#8230;). There are many possible ways of generalizing &#8230; <a title=\"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically?\" class=\"read-more\" href=\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\" aria-label=\"More on [Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically?\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[320],"tags":[1310,323,2410,621,1152],"class_list":["post-13345","post","type-post","status-publish","format-standard","hentry","category-solved","tag-colors","tag-java","tag-rgb","tag-swing","tag-timer"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically? - JassWeb<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically? - JassWeb\" \/>\n<meta property=\"og:description\" content=\"[ad_1] Your current approach is indeed not easily generalizable. The hard-coded parts of the buttons for &#8220;blue&#8221; and &#8220;green&#8221;, and especially the special methods like blueToGreen make it impossible to extend the number of colors with reasonable effort. (You don&#8217;t want to create methods blueToYellow, blueToRed, blueToTheThirdColorFromThisListForWhichIDontKnowAName &#8230;). There are many possible ways of generalizing ... Read more\" \/>\n<meta property=\"og:url\" content=\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\" \/>\n<meta property=\"og:site_name\" content=\"JassWeb\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-03T14:14:02+00:00\" \/>\n<meta name=\"author\" content=\"Kirat\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Kirat\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\"},\"author\":{\"name\":\"Kirat\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\"},\"headline\":\"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically?\",\"datePublished\":\"2022-10-03T14:14:02+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\"},\"wordCount\":167,\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"keywords\":[\"colors\",\"java\",\"rgb\",\"swing\",\"timer\"],\"articleSection\":[\"Solved\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\",\"url\":\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\",\"name\":\"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically? - JassWeb\",\"isPartOf\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#website\"},\"datePublished\":\"2022-10-03T14:14:02+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/jassweb.com\/solved\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/jassweb.com\/solved\/#website\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"name\":\"JassWeb\",\"description\":\"Build High-quality Websites\",\"publisher\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/jassweb.com\/solved\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/jassweb.com\/solved\/#organization\",\"name\":\"Jass Web\",\"url\":\"https:\/\/jassweb.com\/solved\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"contentUrl\":\"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png\",\"width\":693,\"height\":132,\"caption\":\"Jass Web\"},\"image\":{\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31\",\"name\":\"Kirat\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"contentUrl\":\"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586\",\"caption\":\"Kirat\"},\"sameAs\":[\"http:\/\/jassweb.com\"],\"url\":\"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically? - JassWeb","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/","og_locale":"en_US","og_type":"article","og_title":"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically? - JassWeb","og_description":"[ad_1] Your current approach is indeed not easily generalizable. The hard-coded parts of the buttons for &#8220;blue&#8221; and &#8220;green&#8221;, and especially the special methods like blueToGreen make it impossible to extend the number of colors with reasonable effort. (You don&#8217;t want to create methods blueToYellow, blueToRed, blueToTheThirdColorFromThisListForWhichIDontKnowAName &#8230;). There are many possible ways of generalizing ... Read more","og_url":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/","og_site_name":"JassWeb","article_published_time":"2022-10-03T14:14:02+00:00","author":"Kirat","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Kirat","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/#article","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/"},"author":{"name":"Kirat","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31"},"headline":"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically?","datePublished":"2022-10-03T14:14:02+00:00","mainEntityOfPage":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/"},"wordCount":167,"publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"keywords":["colors","java","rgb","swing","timer"],"articleSection":["Solved"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/","url":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/","name":"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically? - JassWeb","isPartOf":{"@id":"https:\/\/jassweb.com\/solved\/#website"},"datePublished":"2022-10-03T14:14:02+00:00","breadcrumb":{"@id":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/jassweb.com\/solved\/solved-how-to-know-what-rgb-values-to-use-for-get-other-colours-to-paint-a-jframe-dynamically\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/jassweb.com\/solved\/"},{"@type":"ListItem","position":2,"name":"[Solved] How to know what r,g,b values to use for get other colours to paint a JFrame dynamically?"}]},{"@type":"WebSite","@id":"https:\/\/jassweb.com\/solved\/#website","url":"https:\/\/jassweb.com\/solved\/","name":"JassWeb","description":"Build High-quality Websites","publisher":{"@id":"https:\/\/jassweb.com\/solved\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/jassweb.com\/solved\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/jassweb.com\/solved\/#organization","name":"Jass Web","url":"https:\/\/jassweb.com\/solved\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/","url":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","contentUrl":"https:\/\/jassweb.com\/wp-content\/uploads\/2021\/02\/jass-website-logo-1.png","width":693,"height":132,"caption":"Jass Web"},"image":{"@id":"https:\/\/jassweb.com\/solved\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/65c9c7b7958150c0dc8371fa35dd7c31","name":"Kirat","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/jassweb.com\/solved\/#\/schema\/person\/image\/","url":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","contentUrl":"https:\/\/jassweb.com\/solved\/wp-content\/litespeed\/avatar\/1261af3c9451399fa1336d28b98ea3bb.jpg?ver=1776403586","caption":"Kirat"},"sameAs":["http:\/\/jassweb.com"],"url":"https:\/\/jassweb.com\/solved\/author\/jaspritsinghghumangmail-com\/"}]}},"_links":{"self":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/13345","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/comments?post=13345"}],"version-history":[{"count":0,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/posts\/13345\/revisions"}],"wp:attachment":[{"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/media?parent=13345"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/categories?post=13345"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jassweb.com\/solved\/wp-json\/wp\/v2\/tags?post=13345"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}