Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem with gradients #26

Open
glorko opened this issue May 30, 2016 · 1 comment
Open

Problem with gradients #26

glorko opened this issue May 30, 2016 · 1 comment

Comments

@glorko
Copy link

glorko commented May 30, 2016

Gradients in a simple example do not work. The lines and fugures from this snippet do not show a gradient:

private String testingLines = "<svg xmlns=\"http://www.w3.org/2000/svg\"\n" +
        "     xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n" +
        "\n" +
        "  <defs>\n" +
        "    <linearGradient id=\"myLinearGradient1\"\n" +
        "                    x1=\"0%\" y1=\"0%\"\n" +
        "                    x2=\"0%\" y2=\"100%\"\n" +
        "                    spreadMethod=\"pad\">\n" +
        "      <stop offset=\"0%\"   stop-color=\"#00cc00\" stop-opacity=\"1\"/>\n" +
        "      <stop offset=\"100%\" stop-color=\"#006600\" stop-opacity=\"1\"/>\n" +
        "    </linearGradient>\n" +
        "  </defs>\n" +
        "\n" +
        "  <rect x=\"10\" y=\"10\" width=\"75\" height=\"100\" rx=\"10\" ry=\"10\"\n" +
        "     style=\"fill:url(#myLinearGradient1);\n" +
        "            stroke: #005000;\n" +
        "            stroke-width: 3;\" />\n" +
        "\n" +
        "</svg>";
@vivekjoyride
Copy link

any have find solution regarding this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants